projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' into benchmark
[lttng-tools.git]
/
benchmark
/
cpu.c
diff --git
a/benchmark/cpu.c
b/benchmark/cpu.c
index efaea387874eef4dff3db4065d6328824d9677ff..02a8d99d3545af818cb1ffeeca1841d0d3b826be 100644
(file)
--- 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;
This page took
0.03042 seconds
and
4
git commands to generate.