@@ -340,31 +340,41 @@ static inline const char *kretprobed(const char *name)
340
340
static void
341
341
seq_print_sym_short (struct trace_seq * s , const char * fmt , unsigned long address )
342
342
{
343
- #ifdef CONFIG_KALLSYMS
344
343
char str [KSYM_SYMBOL_LEN ];
344
+ #ifdef CONFIG_KALLSYMS
345
345
const char * name ;
346
346
347
347
kallsyms_lookup (address , NULL , NULL , NULL , str );
348
348
349
349
name = kretprobed (str );
350
350
351
- trace_seq_printf (s , fmt , name );
351
+ if (name && strlen (name )) {
352
+ trace_seq_printf (s , fmt , name );
353
+ return ;
354
+ }
352
355
#endif
356
+ snprintf (str , KSYM_SYMBOL_LEN , "0x%08lx" , address );
357
+ trace_seq_printf (s , fmt , str );
353
358
}
354
359
355
360
static void
356
361
seq_print_sym_offset (struct trace_seq * s , const char * fmt ,
357
362
unsigned long address )
358
363
{
359
- #ifdef CONFIG_KALLSYMS
360
364
char str [KSYM_SYMBOL_LEN ];
365
+ #ifdef CONFIG_KALLSYMS
361
366
const char * name ;
362
367
363
368
sprint_symbol (str , address );
364
369
name = kretprobed (str );
365
370
366
- trace_seq_printf (s , fmt , name );
371
+ if (name && strlen (name )) {
372
+ trace_seq_printf (s , fmt , name );
373
+ return ;
374
+ }
367
375
#endif
376
+ snprintf (str , KSYM_SYMBOL_LEN , "0x%08lx" , address );
377
+ trace_seq_printf (s , fmt , str );
368
378
}
369
379
370
380
#ifndef CONFIG_64BIT
0 commit comments