X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=benchmark%2Fcpu.c;h=02a8d99d3545af818cb1ffeeca1841d0d3b826be;hb=3c6bae613ee55f949693dc8ca43141d3024d7d96;hp=efaea387874eef4dff3db4065d6328824d9677ff;hpb=b25a886891f7172c0abb189ac71bf2bf9b40ec76;p=lttng-tools.git diff --git a/benchmark/cpu.c b/benchmark/cpu.c index efaea3878..02a8d99d3 100644 --- a/benchmark/cpu.c +++ b/benchmark/cpu.c @@ -23,11 +23,17 @@ #include "cpu.h" +/* + * Return cpu cycle counter + */ cycles_t get_cycles(void) { return caa_get_cycles(); } +/* + * Calculate CPU frequency. + */ uint64_t get_cpu_freq(void) { struct timezone tz;