path: root/tools/perf/perf.h
diff options
authorDavid Ahern <>2013-08-07 21:56:38 -0400
committerArnaldo Carvalho de Melo <>2013-08-12 10:31:04 -0300
commit70f7b4a7f3f9a46807b644aa0fcfa7daa0d553e4 (patch)
treebeaedc789a7aef3c98b1625ec9dc02eeec973c08 /tools/perf/perf.h
parent0a3d23a2568ed5e73bd4fb532dc672fa9f03b1f1 (diff)
perf kvm: Option to print events that exceed a duration
This is useful to spot high latency blips. It is normal for HLT reasons to have long exit times, so strip those from the duration check. v2: changed threshold to duration per acme's request Signed-off-by: David Ahern <> Cc: Frederic Weisbecker <> Cc: Ingo Molnar <> Cc: Jiri Olsa <> Cc: Namhyung Kim <> Cc: Peter Zijlstra <> Cc: Runzhen Wang <> Cc: Xiao Guangrong <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/perf.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 32bd102c32b6..cf20187eee0a 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -125,6 +125,9 @@
#ifndef NSEC_PER_SEC
# define NSEC_PER_SEC 1000000000ULL
+#ifndef NSEC_PER_USEC
+# define NSEC_PER_USEC 1000ULL
static inline unsigned long long rdclock(void)