Re: [PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-10 Thread Tom Zanussi
Hi Namhyung, On Fri, 2017-11-10 at 16:28 +0900, Namhyung Kim wrote: > Hi Tom, > > On Thu, Nov 09, 2017 at 02:33:46PM -0600, Tom Zanussi wrote: > > Add support for saving the value of a current event's event field by > > assigning it to a variable that can be read by a subsequent event. > > > >

Re: [PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-10 Thread Tom Zanussi
Hi Namhyung, On Fri, 2017-11-10 at 16:28 +0900, Namhyung Kim wrote: > Hi Tom, > > On Thu, Nov 09, 2017 at 02:33:46PM -0600, Tom Zanussi wrote: > > Add support for saving the value of a current event's event field by > > assigning it to a variable that can be read by a subsequent event. > > > >

Re: [PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-10 Thread Steven Rostedt
On Fri, 10 Nov 2017 16:28:41 +0900 Namhyung Kim wrote: > > + hist_data->attrs->var_defs.expr[n_vars++] = s; > > + > > + hist_data->attrs->var_defs.n_vars = n_vars; > > + > > + if (n_vars == TRACING_MAP_VARS_MAX) > > +

Re: [PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-10 Thread Steven Rostedt
On Fri, 10 Nov 2017 16:28:41 +0900 Namhyung Kim wrote: > > + hist_data->attrs->var_defs.expr[n_vars++] = s; > > + > > + hist_data->attrs->var_defs.n_vars = n_vars; > > + > > + if (n_vars == TRACING_MAP_VARS_MAX) > > +

Re: [PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-09 Thread Namhyung Kim
Hi Tom, On Thu, Nov 09, 2017 at 02:33:46PM -0600, Tom Zanussi wrote: > Add support for saving the value of a current event's event field by > assigning it to a variable that can be read by a subsequent event. > > The basic syntax for saving a variable is to simply prefix a unique > variable name

Re: [PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-09 Thread Namhyung Kim
Hi Tom, On Thu, Nov 09, 2017 at 02:33:46PM -0600, Tom Zanussi wrote: > Add support for saving the value of a current event's event field by > assigning it to a variable that can be read by a subsequent event. > > The basic syntax for saving a variable is to simply prefix a unique > variable name

[PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-09 Thread Tom Zanussi
Add support for saving the value of a current event's event field by assigning it to a variable that can be read by a subsequent event. The basic syntax for saving a variable is to simply prefix a unique variable name not corresponding to any keyword along with an '=' sign to any event field.

[PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-09 Thread Tom Zanussi
Add support for saving the value of a current event's event field by assigning it to a variable that can be read by a subsequent event. The basic syntax for saving a variable is to simply prefix a unique variable name not corresponding to any keyword along with an '=' sign to any event field.