Re: [PATCH 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-22 Thread kbuild test robot
Hi Binoy, [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.8-rc3 next-20160819] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record

Re: [PATCH 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-21 Thread kbuild test robot
Hi Binoy, [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.8-rc3 next-20160819] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record

Re: [PATCH 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-18 Thread Steven Rostedt
On Thu, 18 Aug 2016 12:39:25 +0530 Binoy Jayan wrote: > > +static inline void mark_timestamp(cycle_t __percpu *ts) > +{ > + int cpu = raw_smp_processor_id(); > + per_cpu(*ts, cpu) = ftrace_now(cpu); Just an FYI. ftrace_now() is whatever the clock source is that is specified by /sys/ker

Re: [PATCH 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-18 Thread Daniel Wagner
On Thu, Aug 18, 2016 at 12:39:25PM +0530, Binoy Jayan wrote: > static struct trace_array*irqsoff_trace __read_mostly; > static int tracer_enabled __read_mostly; > > static DEFINE_PER_CPU(int, tracing_cpu); > - > +static DEFINE_PER_CPU(cycle_t, ts_irqs); >

[PATCH 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-18 Thread Binoy Jayan
This work is based on work by Daniel Wagner. A few tracepoints are added at the end of the critical section. With the hist trigger in place, the hist trigger plots may be generated, with per-cpu breakdown of events captured. It is based on linux kernel's event infrastructure. The following filter(