summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2018-01-15 20:52:04 -0600
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-10 16:06:01 -0500
commit7e8b88a30b085d4205b6afcc5e577604978b1268 (patch)
tree7af5c980b3cc2cbd6399f1c30a0393284c7b5454 /kernel/workqueue.c
parent8b7622bf94a44b3f912e6492bf500e86171300b8 (diff)
downloadlinux-7e8b88a30b085d4205b6afcc5e577604978b1268.tar.gz
linux-7e8b88a30b085d4205b6afcc5e577604978b1268.tar.bz2
linux-7e8b88a30b085d4205b6afcc5e577604978b1268.zip
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 <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions