Merge commit 'perf/core' into perf/hw-breakpoint
[linux-3.10.git] / kernel / trace / trace_entries.h
index ead3d72..e19747d 100644 (file)
@@ -364,3 +364,19 @@ FTRACE_ENTRY(kmem_free, kmemtrace_free_entry,
        F_printk("type:%u call_site:%lx ptr:%p",
                 __entry->type_id, __entry->call_site, __entry->ptr)
 );
+
+FTRACE_ENTRY(ksym_trace, ksym_trace_entry,
+
+       TRACE_KSYM,
+
+       F_STRUCT(
+               __field(        unsigned long,  ip                        )
+               __field(        unsigned char,  type                      )
+               __array(        char         ,  ksym_name, KSYM_NAME_LEN  )
+               __array(        char         ,  cmd,       TASK_COMM_LEN  )
+       ),
+
+       F_printk("ip: %pF type: %d ksym_name: %s cmd: %s",
+               (void *)__entry->ip, (unsigned int)__entry->type,
+               __entry->ksym_name, __entry->cmd)
+);