diff options
author | Tom Zanussi <[email protected]> | 2018-01-15 20:52:04 -0600 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2018-03-10 16:06:01 -0500 |
commit | 7e8b88a30b085d4205b6afcc5e577604978b1268 (patch) | |
tree | 7af5c980b3cc2cbd6399f1c30a0393284c7b5454 /net/switchdev/switchdev.c | |
parent | 8b7622bf94a44b3f912e6492bf500e86171300b8 (diff) |
tracing: Add hist trigger support for variable reference aliases
Add support for alias=$somevar where alias can be used as
onmatch.xxx($alias).
Aliases are a way of creating a new name for an existing variable, for
flexibly in making naming more clear in certain cases. For example in
the below the user perhaps feels that using $new_lat in the synthetic
event invocation is opaque or doesn't fit well stylistically with
previous triggers, so creates an alias of $new_lat named $latency and
uses that in the call instead:
# echo 'hist:keys=next_pid:new_lat=common_timestamp.usecs' >
/sys/kernel/debug/tracing/events/sched/sched_switch/trigger
# echo 'hist:keys=pid:latency=$new_lat:
onmatch(sched.sched_switch).wake2($latency,pid)' >
/sys/kernel/debug/tracing/events/synthetic/wake1/trigger
Link: http://lkml.kernel.org/r/ef20a65d921af3a873a6f1e8c71407c926d5586f.1516069914.git.tom.zanussi@linux.intel.com
Signed-off-by: Tom Zanussi <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions