tracing: Adds handler name to irq_handler_entry
PATCH v2 1/1 tracing: Adds handler name to irq_handler_entry
This patch includes the ISR function name toirq_handler_entry trace point.
---
Changelog since v1:
- fixed indentation
include/trace/events/irq.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
include/trace/events/irq.h +4 -1
@@ -58,14 +58,17 @@ TRACE_EVENT(irq_handler_entry,TP_STRUCT__entry (__field (int ,irq ) __string( name, action->name ) + __field( void*, handler ) ),TP_fast_assign ( __entry->irq = irq;__assign_str (name, action->name); + __entry->handler = action->handler; ), -TP_printk ("irq=%d name=%s" , __entry->irq,__get_str (name)) +TP_printk ("irq=%d name=%s handler=%pf" , + __entry->irq,__get_str (name), __entry->handler) );/**
Signature · 1 line
2.2.0.rc0.207.ga3a616c
Steven Rostedt
maintainer[ Added Thomas to the Cc, as he maintains interrupts ]
Quoted 2 lines · On Tue, 5 May 2015 20:06:27 -0700 Badhri Jagan Sridharan <[email protected]>…
This patch includes the ISR function name to
irq_handler_entrytrace point.
It states what this patch does, but not why it does it.
How much more difficult to map the handler to the interrupt?
Just asking, I'm not sure I needed this, and I use this tracepoint all the time. But then again, I'm a bit of an tracing expert, and can add function graph tracing to see what is happening too. I shouldn't always be the judge on usefulness of added info here ;-)
Quoted 14 lines
Signed-off-by Badhri Jagan Sridharan <[email protected]>---
Changelog since v1:
- fixed indentationinclude/trace/events/irq.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)include/trace/events/irq.h +0
-0
include/trace/events/irq.h TRACE_EVENT(irq_handler_entry, · line 61
Quoted 4 lines
include/trace/events/irq.h +1
-0@@ -58,14 +58,17 @@ TRACE_EVENT(irq_handler_entry,TP_STRUCT__entry (__field (int ,irq ) __string( name, action->name ) + __field( void*, handler )
Nit, you need a space between 'void' and '*'.
-- Steve
Quoted 14 lines
include/trace/events/irq.h +3
-1), TP_fast_assign( __entry->irq = irq;__assign_str (name, action->name); + __entry->handler = action->handler; ), -TP_printk ("irq=%d name=%s" , __entry->irq,__get_str (name)) +TP_printk ("irq=%d name=%s handler=%pf" , + __entry->irq,__get_str (name), __entry->handler) );/**
Yes Steven.. It shouldn't be too difficult to find out the handler for a specific device. But, I am looking
at some user space scripts that looks across different devices, to data-mine interrupt stats. Although, the interrupt numbers from the device tree change from one device to another, if its the same device driver, the handlers remain the same. So it gives me a good sense of similar interrupts that fire.
If you think that its not to much of an overhead,I will send a follow up patch to correct the spacing error that you mentioned.
And did you really add Thomas to CC ?
Thanks,
Badhri
Quoted 55 lines · Steven Rostedt
[ Added Thomas to the Cc, as he maintains interrupts ]
Quoted 2 lines · On Tue, 5 May 2015 20:06:27 -0700 Badhri Jagan Sridharan <[email protected]>…
This patch includes the ISR function name to
irq_handler_entrytrace point.It states what this patch does, but not why it does it.
How much more difficult to map the handler to the interrupt?
Just asking, I'm not sure I needed this, and I use this tracepoint all the time. But then again, I'm a bit of an tracing expert, and can add function graph tracing to see what is happening too. I shouldn't always be the judge on usefulness of added info here ;-)
Quoted 14 lines
Signed-off-by Badhri Jagan Sridharan <[email protected]>---
Changelog since v1:
- fixed indentationinclude/trace/events/irq.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)include/trace/events/irq.h +0
-0include/trace/events/irq.h TRACE_EVENT(irq_handler_entry, · line 61
Quoted 4 lines
include/trace/events/irq.h +1
-0@@ -58,14 +58,17 @@ TRACE_EVENT(irq_handler_entry,TP_STRUCT__entry (__field (int ,irq ) __string( name, action->name ) + __field( void*, handler )Nit, you need a space between 'void' and '*'.
-- Steve
Quoted 14 lines
include/trace/events/irq.h +3
-1), TP_fast_assign( __entry->irq = irq;__assign_str (name, action->name); + __entry->handler = action->handler; ), -TP_printk ("irq=%d name=%s" , __entry->irq,__get_str (name)) +TP_printk ("irq=%d name=%s handler=%pf" , + __entry->irq,__get_str (name), __entry->handler) );/**
Steven Rostedt
maintainerQuoted 9 lines · On Thu, 07 May 2015 14:44:49 -0700 Badhri Jagan Sridharan <[email protected]>…
Yes Steven.. It shouldn't be too difficult to find out the handler for a specific device. But, I am looking
at some user space scripts that looks across different devices, to data-mine interrupt stats. Although, the interrupt numbers from the device tree change from one device to another, if its the same device driver, the handlers remain the same. So it gives me a good sense of similar interrupts that fire.
Quoted 3 lines
If you think that its not to much of an overhead,I will send a follow up patch to correct the spacing error that you mentioned.
OK.
Quoted 2 lines
And did you really add Thomas to CC ?
Ug, utter fail :-p I wrote that from my laptop while upstairs (not in my office) and did not have Thomas in my address book. Then my wife came in and started talking to me, and when she left I hit send (forgetting to add Thomas in the Cc).
Added now!
-- Steve
Quoted 60 lines
Thanks,
BadhriQuoted 55 lines · Steven Rostedt
[ Added Thomas to the Cc, as he maintains interrupts ]
Quoted 2 lines · On Tue, 5 May 2015 20:06:27 -0700 Badhri Jagan Sridharan <[email protected]>…
This patch includes the ISR function name to
irq_handler_entrytrace point.It states what this patch does, but not why it does it.
How much more difficult to map the handler to the interrupt?
Just asking, I'm not sure I needed this, and I use this tracepoint all the time. But then again, I'm a bit of an tracing expert, and can add function graph tracing to see what is happening too. I shouldn't always be the judge on usefulness of added info here ;-)
Quoted 14 lines
Signed-off-by Badhri Jagan Sridharan <[email protected]>---
Changelog since v1:
- fixed indentationinclude/trace/events/irq.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)include/trace/events/irq.h +0
-0include/trace/events/irq.h TRACE_EVENT(irq_handler_entry, · line 61
Quoted 4 lines
include/trace/events/irq.h +1
-0@@ -58,14 +58,17 @@ TRACE_EVENT(irq_handler_entry,TP_STRUCT__entry (__field (int ,irq ) __string( name, action->name ) + __field( void*, handler )Nit, you need a space between 'void' and '*'.
-- Steve
Quoted 14 lines
include/trace/events/irq.h +3
-1), TP_fast_assign( __entry->irq = irq;__assign_str (name, action->name); + __entry->handler = action->handler; ), -TP_printk ("irq=%d name=%s" , __entry->irq,__get_str (name)) +TP_printk ("irq=%d name=%s handler=%pf" , + __entry->irq,__get_str (name), __entry->handler) );/**
Thanks Steven :) I have made the changes
that you mentioned and sent out an
updated version of the patch.
Quoted 92 lines · Steven Rostedt
Quoted 9 lines · On Thu, 07 May 2015 14:44:49 -0700 Badhri Jagan Sridharan <[email protected]>…
Yes Steven.. It shouldn't be too difficult to find out the handler for a specific device. But, I am looking
at some user space scripts that looks across different devices, to data-mine interrupt stats. Although, the interrupt numbers from the device tree change from one device to another, if its the same device driver, the handlers remain the same. So it gives me a good sense of similar interrupts that fire.Quoted 3 lines
If you think that its not to much of an overhead,I will send a follow up patch to correct the spacing error that you mentioned.
OK.
Quoted 2 lines
And did you really add Thomas to CC ?
Ug, utter fail :-p I wrote that from my laptop while upstairs (not in my office) and did not have Thomas in my address book. Then my wife came in and started talking to me, and when she left I hit send (forgetting to add Thomas in the Cc).
Added now!
-- Steve
Quoted 60 lines
Thanks,
BadhriQuoted 55 lines · Steven Rostedt
[ Added Thomas to the Cc, as he maintains interrupts ]
Quoted 2 lines · On Tue, 5 May 2015 20:06:27 -0700 Badhri Jagan Sridharan <[email protected]>…
This patch includes the ISR function name to
irq_handler_entrytrace point.It states what this patch does, but not why it does it.
How much more difficult to map the handler to the interrupt?
Just asking, I'm not sure I needed this, and I use this tracepoint all the time. But then again, I'm a bit of an tracing expert, and can add function graph tracing to see what is happening too. I shouldn't always be the judge on usefulness of added info here ;-)
Quoted 14 lines
Signed-off-by Badhri Jagan Sridharan <[email protected]>---
Changelog since v1:
- fixed indentationinclude/trace/events/irq.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)include/trace/events/irq.h +0
-0include/trace/events/irq.h TRACE_EVENT(irq_handler_entry, · line 61
Quoted 4 lines
include/trace/events/irq.h +1
-0@@ -58,14 +58,17 @@ TRACE_EVENT(irq_handler_entry,TP_STRUCT__entry (__field (int ,irq ) __string( name, action->name ) + __field( void*, handler )Nit, you need a space between 'void' and '*'.
-- Steve
Quoted 14 lines
include/trace/events/irq.h +3
-1), TP_fast_assign( __entry->irq = irq;__assign_str (name, action->name); + __entry->handler = action->handler; ), -TP_printk ("irq=%d name=%s" , __entry->irq,__get_str (name)) +TP_printk ("irq=%d name=%s handler=%pf" , + __entry->irq,__get_str (name), __entry->handler) );/**