summaryrefslogtreecommitdiff
path: root/samples/timers
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2020-09-25 15:31:44 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-09-28 10:36:02 -0400
commitfdb46faeab2f3fa2b43a55059b33b8f98b2e1442 (patch)
treed61d366671a945bfd54d1d3aca6f053744cd9b79 /samples/timers
parentc65fc2276f0f022f5ad4a84658add2b28cff7227 (diff)
x86: Use tracepoint_enabled() for msr tracepoints instead of open coding it
7f47d8cc039f ("x86, tracing, perf: Add trace point for MSR accesses") added tracing of msr read and write, but because of complexity in having tracepoints in headers, and even more so for a core header like msr.h, not to mention the bloat a tracepoint adds to inline functions, a helper function is needed to be called from the header. Use the new tracepoint_enabled() macro in tracepoint-defs.h to test if the tracepoint is active before calling the helper function, instead of open coding the same logic, which requires knowing the internals of a tracepoint. Cc: Andi Kleen <ak@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'samples/timers')
0 files changed, 0 insertions, 0 deletions