@@ -303,6 +303,7 @@ TRACE_EVENT(foo_bar,
303
303
__bitmask ( cpus , num_possible_cpus () )
304
304
__cpumask ( cpum )
305
305
__vstring ( vstr , fmt , va )
306
+ __string_len ( lstr , foo , bar / 2 < strlen (foo ) ? bar / 2 : strlen (foo ) )
306
307
),
307
308
308
309
TP_fast_assign (
@@ -311,12 +312,13 @@ TRACE_EVENT(foo_bar,
311
312
memcpy (__get_dynamic_array (list ), lst ,
312
313
__length_of (lst ) * sizeof (int ));
313
314
__assign_str (str , string );
315
+ __assign_str (lstr , foo );
314
316
__assign_vstr (vstr , fmt , va );
315
317
__assign_bitmask (cpus , cpumask_bits (mask ), num_possible_cpus ());
316
318
__assign_cpumask (cpum , cpumask_bits (mask ));
317
319
),
318
320
319
- TP_printk ("foo %s %d %s %s %s %s (%s) (%s) %s" , __entry -> foo , __entry -> bar ,
321
+ TP_printk ("foo %s %d %s %s %s %s %s (%s) (%s) %s" , __entry -> foo , __entry -> bar ,
320
322
321
323
/*
322
324
* Notice here the use of some helper functions. This includes:
@@ -360,7 +362,8 @@ TRACE_EVENT(foo_bar,
360
362
__print_array (__get_dynamic_array (list ),
361
363
__get_dynamic_array_len (list ) / sizeof (int ),
362
364
sizeof (int )),
363
- __get_str (str ), __get_bitmask (cpus ), __get_cpumask (cpum ),
365
+ __get_str (str ), __get_str (lstr ),
366
+ __get_bitmask (cpus ), __get_cpumask (cpum ),
364
367
__get_str (vstr ))
365
368
);
366
369
0 commit comments