[PATCH V4] trace/events: add chip name and hwirq to irq entry tracepoint

2015-07-08 Thread Ankit Gupta
dynamically allocated which makes them difficult to use for the same purpose. Dump messages will look like: ...irq_handler_entry: irq=22 name=msm_serial0 chip_name=GIC hwirq=140 Suggested-by: Stephen Boyd Reviewed-by: Andy Gross Signed-off-by: Gilad Avidov Signed-off-by: Ankit Gupta --- Changes

Re: [PATCH V3] trace/events: add chip name and hwirq to irq entry tracepoint

2015-07-08 Thread Ankit Gupta
> On Wed, 24 Jun 2015, Steven Rostedt wrote: >> > + >> > +#define show_chip_name(irq) \ >> > + (irq_get_irq_data(irq) \ >> > + ? irq_get_irq_data(irq)->chip->name\ >> > + : "NULL") >> > +

[PATCH V3] trace/events: add chip name and hwirq to irq entry tracepoint

2015-06-24 Thread Ankit Gupta
dynamically allocated which makes them difficult to use for the same purpose. Dump messages will look like: ...irq_handler_entry: irq=22 name=msm_serial0 chip_name=GIC hwirq=140 Suggested-by: Stephen Boyd Reviewed-by: Andy Gross Signed-off-by: Gilad Avidov Signed-off-by: Ankit Gupta --- Changes

Re: [PATCH v2] trace/events: add chip name and hwirq to irq entry tracepoint

2015-06-23 Thread Ankit Gupta
> On Mon, 22 Jun 2015, Ankit Gupta wrote: > >> Add chip name and hw-irq number to the trace_irq_handler_entry() >> tracepoint. When tracing interrupt events the chip-name and hw-irq >> numbers are stable and known in advance. This makes them a better >> choice as a fi

[PATCH v2] trace/events: add chip name and hwirq to irq entry tracepoint

2015-06-22 Thread Ankit Gupta
dynamically allocated which makes them difficult to use for the same purpose. Dump messages will look like: ...irq_handler_entry: irq=22 name=msm_serial0 domain=GIC hwirq=140 Suggested-by: Stephen Boyd Reviewed-by: Andy Gross Signed-off-by: Gilad Avidov Signed-off-by: Ankit Gupta --- Changes

[PATCH RESEND V3] spmi: add command tracepoints for SPMI

2015-06-22 Thread Ankit Gupta
opc=56 sid=00 addr=0x ... spmi_read_end: opc=56 sid=00 addr=0x ret=0 len=02 buf=0x[01-40] ... spmi_write_begin: opc=48 sid=00 addr=0x len=3 buf=0x[ff-ff-ff] Suggested-by: Sagar Dharia Acked-by: Steven Rostedt Reviewed-by: Stephen Boyd Signed-off-by: Gilad Avidov Signed-off-by

Re: [PATCH v2] spmi-pmic-arb: add irq tracepoints to the pmic-arb driver

2015-05-27 Thread Ankit Gupta
pmi_pmic_arb_apid_irq_end: apid=3 irq=1 func_num=0 sid=0 pid=0x8 > > Suggested-by: Sagar Dharia > Signed-off-by: Gilad Avidov > Signed-off-by: Ankit Gupta > --- --- Changes since V1: - pass ppid from driver to evaluate pid and sid in trace file itself. - type of apid range change fro

[PATCH v2] spmi-pmic-arb: add irq tracepoints to the pmic-arb driver

2015-05-27 Thread Ankit Gupta
ned-off-by: Ankit Gupta --- drivers/spmi/spmi-pmic-arb.c | 13 +--- include/trace/events/spmi-pmic-arb.h | 62 2 files changed, 70 insertions(+), 5 deletions(-) create mode 100644 include/trace/events/spmi-pmic-arb.h diff --git a/drivers/spmi/s

Re: [PATCH] spmi-pmic-arb: add irq tracepoints to the pmic-arb driver

2015-05-27 Thread Ankit Gupta
> On Tue, 26 May 2015 17:39:15 -0600 > Ankit Gupta wrote: > >> The spmi-pmic-arb is also an interrupt controller. It gets a >> single aggregate irq and disseminates it to individual >> pmic-peripheral drivers. Each pmic-peripheral has a unique apid >> number

Re: [PATCH] spmi-pmic-arb: add irq tracepoints to the pmic-arb driver

2015-05-27 Thread Ankit Gupta
> On 05/26/2015 04:39 PM, Ankit Gupta wrote: >> The spmi-pmic-arb is also an interrupt controller. It gets a >> single aggregate irq and disseminates it to individual >> pmic-peripheral drivers. Each pmic-peripheral has a unique apid >> number, and can have multiple

[PATCH] spmi-pmic-arb: add irq tracepoints to the pmic-arb driver

2015-05-26 Thread Ankit Gupta
ned-off-by: Ankit Gupta --- drivers/spmi/spmi-pmic-arb.c | 15 ++--- include/trace/events/spmi-pmic-arb.h | 62 2 files changed, 72 insertions(+), 5 deletions(-) create mode 100644 include/trace/events/spmi-pmic-arb.h diff --git a/drivers/spmi/s

[PATCH V3] spmi: add command tracepoints for SPMI

2015-05-26 Thread Ankit Gupta
opc=56 sid=00 addr=0x ... spmi_read_end: opc=56 sid=00 addr=0x ret=0 len=02 buf=0x[01-40] ... spmi_write_begin: opc=48 sid=00 addr=0x len=3 buf=0x[ff-ff-ff] Suggested-by: Sagar Dharia Acked-by: Steven Rostedt Reviewed-by: Stephen Boyd Signed-off-by: Gilad Avidov Signed-off-by

Re: [PATCH] spmi: add command tracepoints for SPMI

2015-05-21 Thread Ankit Gupta
> On 05/18/15 14:51, Ankit Gupta wrote: >> Add tracepoints to retrieve information about read, write >> and non-data commands. For performance measurement support >> tracepoints are added at the beginning and at the end of >> transfers. Following is a list showing the ne

Re: [PATCH] spmi: add command tracepoints for SPMI

2015-05-21 Thread Ankit Gupta
> On 05/20, Ankit Gupta wrote: >> On Tue, 19 May 2015 17:36:41 -0700 >> Stephen Boyd wrote: >> > On 05/18/15 14:51, Ankit Gupta wrote: >> > > + >> > > +TRACE_EVENT(spmi_read_end, >> > > +TP_PROTO(u8 opcode, u8 sid, u16 addr, int

Re: [PATCH] spmi: add command tracepoints for SPMI

2015-05-20 Thread Ankit Gupta
On Tue, 19 May 2015 17:36:41 -0700 Stephen Boyd wrote: > +Steven Rostedt > > On 05/18/15 14:51, Ankit Gupta wrote: > > Add tracepoints to retrieve information about read, write > > and non-data commands. For performance measurement support > > tracepoints are added

[PATCH] spmi: add command tracepoints for SPMI

2015-05-18 Thread Ankit Gupta
opc=56 sid=00 addr=0x ... spmi_read_end: opc=56 sid=00 addr=0x ret=0 len=02 buf=0x[01-40] ... spmi_write_begin: opc=48 sid=00 addr=0x len=3 buf=0x[ff-ff-ff] Signed-off-by: Ankit Gupta Signed-off-by: Gilad Avidov Suggested-by: Sagar Dharia --- drivers/spmi/spmi.c | 22 ++-