Re: [PATCH 11/20 v2] tracing: Add symbol type to function based events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 11/20 v2] tracing: Add symbol type to function based events
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Thu, 8 Feb 2018 10:59:00 -0500
- Cc: linux-kernel@xxxxxxxxxxxxxxx, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Masami Hiramatsu <mhiramat@xxxxxxxxxx>, Tom Zanussi <tom.zanussi@xxxxxxxxxxxxxxx>, linux-rt-users@xxxxxxxxxxxxxxx, linux-trace-users@xxxxxxxxxxxxxxx, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Clark Williams <williams@xxxxxxxxxx>, Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>, Juri Lelli <juri.lelli@xxxxxxxxxx>
- In-reply-to: <20180208112031.GB30958@krava>
- References: <20180207202402.253089656@goodmis.org> <20180207202816.348135328@goodmis.org> <20180208112031.GB30958@krava>
On Thu, 8 Feb 2018 12:20:31 +0100
Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> > +Symbols (function names)
> > +========================
> > +
> > +To display kallsyms "%pS" type of output, use the special type "symbol".
> > +
> > +Again, using gdb to find the offset of the "func" field of struct work_struct
> > +
> > +(gdb) printf "%d\n", &((struct work_struct *)0)->func
> > +24
>
> you could also use Arnaldo's pahole for this, seems like less typing:
>
> $ pahole ./vmlinux -C work_struct
> die__process_function: tag not supported (INVALID)!
> struct work_struct {
> atomic_long_t data; /* 0 8 */
> struct list_head entry; /* 8 16 */
> work_func_t func; /* 24 8 */
>
> it's in 'dwarves' package
Nice, I'll have to document that:
$ pahole ./vmlinux -C net_device |grep perm
unsigned char perm_addr[32]; /* 558 32 */
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]