Skip to contentSkip to conversation

Check if interrupt action name is not null in statedump.

PATCH Mathieu Desnoyers 1 participant 1 message Nov 8, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw
Quoted 4 lines · * Simon Marchi ([email protected]) wrote:

Protection against poorly written drivers who give a null name to their irq handlers.

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
index d350cad..e4c86d6 100644
@@ -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