Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1474523
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ftrace: Handle TRACE_BPUTS in print_graph_comment |
| Date | 2016-09-01 18:30 +0200 |
| Message-ID | <scD2h-4er-1@gated-at.bofh.it> (permalink) |
| References | <scqeK-2rD-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 1 Sep 2016 11:43:54 +0900 Namhyung Kim <namhyung@kernel.org> wrote: > It missed to handle TRACE_BPUTS so messages recorded by trace_bputs() > will be shown with symbol info unnecessarily. > > You can see it with the trace_printk sample code: > > # cd /sys/kernel/tracing/ > # echo sys_sync > set_graph_function > # echo 1 > options/sym-offset > # echo function_graph > current_tracer > > Note that the sys_sync filter was there to prevent recording other > functions and the sym-offset option was needed since the first message > was called from a module init function so kallsyms doesn't have the > symbol and omitted in the output. > > # cd ~/build/kernel > # insmod samples/trace_printk/trace-printk.ko > > # cd - > # head trace > > Before: > > # tracer: function_graph > # > # CPU DURATION FUNCTION CALLS > # | | | | | | | > 1) | /* 0xffffffffa0002000: This is a static string that will use trace_bputs */ > 1) | /* This is a dynamic string that will use trace_puts */ > 1) | /* trace_printk_irq_work+0x5/0x7b [trace_printk]: (irq) This is a static string that will use trace_bputs */ > 1) | /* (irq) This is a dynamic string that will use trace_puts */ > 1) | /* (irq) This is a static string that will use trace_bprintk() */ > 1) | /* (irq) This is a dynamic string that will use trace_printk */ > > After: > > # tracer: function_graph > # > # CPU DURATION FUNCTION CALLS > # | | | | | | | > 1) | /* This is a static string that will use trace_bputs */ > 1) | /* This is a dynamic string that will use trace_puts */ > 1) | /* (irq) This is a static string that will use trace_bputs */ > 1) | /* (irq) This is a dynamic string that will use trace_puts */ > 1) | /* (irq) This is a static string that will use trace_bprintk() */ > 1) | /* (irq) This is a dynamic string that will use trace_printk */ > > Signed-off-by: Namhyung Kim <namhyung@kernel.org> > --- Applied, thanks Namhyung! -- Steve
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] ftrace: Handle TRACE_BPUTS in print_graph_comment Namhyung Kim <namhyung@kernel.org> - 2016-09-01 04:50 +0200 Re: [PATCH] ftrace: Handle TRACE_BPUTS in print_graph_comment Steven Rostedt <rostedt@goodmis.org> - 2016-09-01 18:30 +0200
csiph-web