Check if interrupt action name is not null in statedump.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedQuoted 4 lines · * Simon Marchi ([email protected]) wrote:
Protection against poorly written drivers who give a null name to their irq handlers.
Signed-off-by Simon Marchi <[email protected]>
merged, thanks!
Mathieu
Quoted 31 lines
--- .../events/lttng-module/lttng-statedump.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)instrumentation/events/lttng-module/lttng-statedump.h +2
-2@@ -150,12 +150,12 @@ TRACE_EVENT(lttng_statedump_interrupt,TP_STRUCT__entry (__field (unsigned int ,irq )__string (name, chip_name) - __string(action, action->name) + __string(action, action->name ? : "") ),TP_fast_assign ( tp_assign(irq, irq)tp_strcpy (name ,chip_name ) - tp_strcpy(action, action->name) + tp_strcpy(action, action->name ? : "") ), TP_printk("") )Signature · 7 lines
1.7.1 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 4 lines
Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com