Note that I needed the following patch to fix some build errors: diff --git a/lib/time_stats.c b/lib/time_stats.c index a5b9f149e2c6a..6618b1c35d700 100644 --- a/lib/time_stats.c +++ b/lib/time_stats.c @@ -6,6 +6,7 @@ #include <linux/time.h> #include <linux/time_stats.h> #include <linux/spinlock.h> +#include <linux/module.h> static const struct time_unit time_units[] = { { "ns", 1 }, @@ -29,6 +30,7 @@ const struct time_unit *pick_time_units(u64 ns) return u; } +EXPORT_SYMBOL_GPL(pick_time_units); static void quantiles_update(struct quantiles *q, u64 v) { @@ -262,3 +264,7 @@ void time_stats_init(struct time_stats *stats) spin_lock_init(&stats->lock); } EXPORT_SYMBOL_GPL(time_stats_init); + +MODULE_AUTHOR("Kent Overstreet?"); +MODULE_DESCRIPTION("time statistics library"); +MODULE_LICENSE("GPL");