summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-clang.cpp
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2017-09-05 14:16:28 +0200
committerIngo Molnar <mingo@kernel.org>2017-10-27 10:31:59 +0200
commit0d3d73aac2ff05c78387aa9dcc2c8aa3804405e7 (patch)
tree829a0fcdecec3ba45aac39380fdc8e31acfc286a /tools/build/feature/test-clang.cpp
parentperf/core: Fix perf_event_read() (diff)
downloadlinux-0d3d73aac2ff05c78387aa9dcc2c8aa3804405e7.tar.xz
linux-0d3d73aac2ff05c78387aa9dcc2c8aa3804405e7.zip
perf/core: Rewrite event timekeeping
The current even timekeeping, which computes enabled and running times, uses 3 distinct timestamps to reflect the various event states: OFF (stopped), INACTIVE (enabled) and ACTIVE (running). Furthermore, the update rules are such that even INACTIVE events need their timestamps updated. This is undesirable because we'd like to not touch INACTIVE events if at all possible, this makes event scheduling (much) more expensive than needed. Rewrite the timekeeping to directly use event->state, this greatly simplifies the code and results in only having to update things when we change state, or an up-to-date value is requested (read). Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/build/feature/test-clang.cpp')
0 files changed, 0 insertions, 0 deletions