Re: [PATCH v4 4/7] tracing: Add support for dynamic strings to synthetic events

2020-10-09 Thread Masami Hiramatsu
On Thu, 8 Oct 2020 15:21:50 -0400 Steven Rostedt wrote: > On Thu, 8 Oct 2020 18:22:07 +0900 > Masami Hiramatsu wrote: > > > Some of those issues are not introduced from this series. I think > > we'd better fix those before introducing this series so that > > we can backport it to stable kernels

Re: [PATCH v4 4/7] tracing: Add support for dynamic strings to synthetic events

2020-10-08 Thread Tom Zanussi
Hi Masami, On Thu, 2020-10-08 at 18:22 +0900, Masami Hiramatsu wrote: > Hi Tom, > > On Sun, 4 Oct 2020 17:14:06 -0500 > Tom Zanussi wrote: > > > Currently, sythetic events only support static string fields such > > as: > > > > # echo 'test_latency u64 lat; char somename[32]' > > > /sys/kern

Re: [PATCH v4 4/7] tracing: Add support for dynamic strings to synthetic events

2020-10-08 Thread Steven Rostedt
On Thu, 8 Oct 2020 18:22:07 +0900 Masami Hiramatsu wrote: > Some of those issues are not introduced from this series. I think > we'd better fix those before introducing this series so that > we can backport it to stable kernels. I agree that these should be fixed, but I'm not sure I want to hold

Re: [PATCH v4 4/7] tracing: Add support for dynamic strings to synthetic events

2020-10-08 Thread Masami Hiramatsu
Hi Tom, On Sun, 4 Oct 2020 17:14:06 -0500 Tom Zanussi wrote: > Currently, sythetic events only support static string fields such as: > > # echo 'test_latency u64 lat; char somename[32]' > > /sys/kernel/debug/tracing/synthetic_events > > Which is fine, but wastes a lot of space in the event

Re: tracing: Add support for dynamic strings to synthetic events

2020-10-07 Thread Tom Zanussi
owing commit in source > > kernel/trace/trace_events_synth.c > > > > commit bd82631d7ccdc894af2738e47abcba2cb6e7dea9 > > Author: Tom Zanussi > > Date: Sun Oct 4 17:14:06 2020 -0500 > > > > tracing: Add support for dynamic strings to synthetic events > &

Re: tracing: Add support for dynamic strings to synthetic events

2020-10-07 Thread Colin Ian King
trace/trace_events_synth.c >> >> commit bd82631d7ccdc894af2738e47abcba2cb6e7dea9 >> Author: Tom Zanussi >> Date: Sun Oct 4 17:14:06 2020 -0500 >> >> tracing: Add support for dynamic strings to synthetic events >> >> Analysis is as fol

Re: tracing: Add support for dynamic strings to synthetic events

2020-10-07 Thread Steven Rostedt
6e7dea9 > Author: Tom Zanussi > Date: Sun Oct 4 17:14:06 2020 -0500 > > tracing: Add support for dynamic strings to synthetic events > > Analysis is as follows: > > 493for (i = 0; i < event->n_fields; i++) { > > Same on both sides (CONSTANT_EXPRES

re: tracing: Add support for dynamic strings to synthetic events

2020-10-07 Thread Colin Ian King
dynamic strings to synthetic events Analysis is as follows: 493for (i = 0; i < event->n_fields; i++) { Same on both sides (CONSTANT_EXPRESSION_RESULT) pointless_expression: The expression event->fields[i]->is_dynamic && event->fields[i]->is_dynamic does not acco

[for-linus][PATCH 05/15] tracing: Add support for dynamic strings to synthetic events

2020-10-06 Thread Steven Rostedt
From: Tom Zanussi Currently, sythetic events only support static string fields such as: # echo 'test_latency u64 lat; char somename[32]' > /sys/kernel/debug/tracing/synthetic_events Which is fine, but wastes a lot of space in the event. It also prevents the most commonly-defined strings in

[PATCH v4 4/7] tracing: Add support for dynamic strings to synthetic events

2020-10-04 Thread Tom Zanussi
Currently, sythetic events only support static string fields such as: # echo 'test_latency u64 lat; char somename[32]' > /sys/kernel/debug/tracing/synthetic_events Which is fine, but wastes a lot of space in the event. It also prevents the most commonly-defined strings in the existing trace e

Re: [PATCH v2 3/3] tracing: Add support for dynamic strings to synthetic events

2020-10-02 Thread Tom Zanussi
Hi Masami, On Fri, 2020-10-02 at 16:17 +0900, Masami Hiramatsu wrote: > Hi Tom, > > On Wed, 30 Sep 2020 13:40:52 -0500 > Tom Zanussi wrote: > > > Currently, sythetic events only support static string fields such > > as: > > > > # echo 'test_latency u64 lat; char somename[32]' > > > /sys/kern

Re: [PATCH v2 3/3] tracing: Add support for dynamic strings to synthetic events

2020-10-02 Thread Masami Hiramatsu
Hi Tom, On Wed, 30 Sep 2020 13:40:52 -0500 Tom Zanussi wrote: > Currently, sythetic events only support static string fields such as: > > # echo 'test_latency u64 lat; char somename[32]' > > /sys/kernel/debug/tracing/synthetic_events > > Which is fine, but wastes a lot of space in the event

[PATCH v3 3/3] tracing: Add support for dynamic strings to synthetic events

2020-10-01 Thread Tom Zanussi
Currently, sythetic events only support static string fields such as: # echo 'test_latency u64 lat; char somename[32]' > /sys/kernel/debug/tracing/synthetic_events Which is fine, but wastes a lot of space in the event. It also prevents the most commonly-defined strings in the existing trace e

[PATCH v2 3/3] tracing: Add support for dynamic strings to synthetic events

2020-09-30 Thread Tom Zanussi
Currently, sythetic events only support static string fields such as: # echo 'test_latency u64 lat; char somename[32]' > /sys/kernel/debug/tracing/synthetic_events Which is fine, but wastes a lot of space in the event. It also prevents the most commonly-defined strings in the existing trace e

Re: [PATCH 3/3] tracing: Add support for dynamic strings to synthetic events

2020-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2020 15:01:59 -0700 Axel Rasmussen wrote: > > event->fields[i]->offset = n_u64; > > > > - if (event->fields[i]->is_string) { > > + if (event->fields[i]->is_string && > > !event->fields[i]->is_dynamic) { > > offset

Re: [PATCH 3/3] tracing: Add support for dynamic strings to synthetic events

2020-09-29 Thread Axel Rasmussen
On Tue, Sep 29, 2020 at 1:33 PM Tom Zanussi wrote: > > Currently, sythetic events only support static string fields such as: > > # echo 'test_latency u64 lat; char somename[32]' > > /sys/kernel/debug/tracing/synthetic_events > > Which is fine, but wastes a lot of space in the event. > > It also

[PATCH 3/3] tracing: Add support for dynamic strings to synthetic events

2020-09-29 Thread Tom Zanussi
Currently, sythetic events only support static string fields such as: # echo 'test_latency u64 lat; char somename[32]' > /sys/kernel/debug/tracing/synthetic_events Which is fine, but wastes a lot of space in the event. It also prevents the most commonly-defined strings in the existing trace e