aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/lockdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/events/lockdep.h')
-rw-r--r--include/trace/events/lockdep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/trace/events/lockdep.h b/include/trace/events/lockdep.h
index 45e326b5c7f3..3ca315c1429d 100644
--- a/include/trace/events/lockdep.h
+++ b/include/trace/events/lockdep.h
@@ -38,16 +38,16 @@ TRACE_EVENT(lock_acquired,
38 TP_ARGS(lock, ip, waittime), 38 TP_ARGS(lock, ip, waittime),
39 39
40 TP_STRUCT__entry( 40 TP_STRUCT__entry(
41 __field(const char *, name) 41 __string(name, lock->name)
42 __field(unsigned long, wait_usec) 42 __field(unsigned long, wait_usec)
43 __field(unsigned long, wait_nsec_rem) 43 __field(unsigned long, wait_nsec_rem)
44 ), 44 ),
45 TP_fast_assign( 45 TP_fast_assign(
46 __entry->name = lock->name; 46 __assign_str(name, lock->name);
47 __entry->wait_nsec_rem = do_div(waittime, NSEC_PER_USEC); 47 __entry->wait_nsec_rem = do_div(waittime, NSEC_PER_USEC);
48 __entry->wait_usec = (unsigned long) waittime; 48 __entry->wait_usec = (unsigned long) waittime;
49 ), 49 ),
50 TP_printk("%s (%lu.%03lu us)", __entry->name, __entry->wait_usec, 50 TP_printk("%s (%lu.%03lu us)", __get_str(name), __entry->wait_usec,
51 __entry->wait_nsec_rem) 51 __entry->wait_nsec_rem)
52); 52);
53 53