Hi, Thank you Daniel, Steven for reviewing the code and for the comments. I have made the changes mentioned below and have added the hack to mark the field cpu as a key.
These set of patches [v5] capture latency events caused by interrupts and premption disabled in kernel. The patches are based on the hist trigger feature developed by Tom Zanussi. v4: https://lkml.org/lkml/2016/8/30/188 v3: https://lkml.org/lkml/2016/8/29/50 v2: https://lkml.org/lkml/2016/8/24/296 Changes from v4 - Added unlikely() for less probable paths - Dropped field 'ccomm' for hrtimer latency - Patch to mark the generic field cpu as a key field and make it part of histogram output - Changed ambiguous function names TODO: 1. kselftest test scripts 2. delayed hrtimer offset test scenario Thanks, Binoy Binoy Jayan (3): tracing: Add cpu as a key field in histogram tracing: Add trace_irqsoff tracepoints tracing: Histogram for delayed hrtimer offsets Daniel Wagner (1): tracing: Deference pointers without RCU checks include/linux/hrtimer.h | 3 ++ include/linux/rculist.h | 36 ++++++++++++++++++ include/linux/tracepoint.h | 4 +- include/trace/events/latency.h | 73 +++++++++++++++++++++++++++++++++++++ kernel/time/hrtimer.c | 46 +++++++++++++++++++++++ kernel/trace/trace_events.c | 3 +- kernel/trace/trace_events_filter.c | 4 +- kernel/trace/trace_events_hist.c | 15 ++++++++ kernel/trace/trace_events_trigger.c | 6 +-- kernel/trace/trace_irqsoff.c | 35 ++++++++++++++++++ 10 files changed, 217 insertions(+), 8 deletions(-) create mode 100644 include/trace/events/latency.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

