summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2018-01-16 05:51:46 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-11 00:05:53 +0300
commit2734b629525a9dae5bf217cbf0a9651da93d2108 (patch)
treecceda953ecbf5a2ec814399751089c1c9996eb3c /scripts/gdb/linux/utils.py
parentad42febe51ae0a2e875f507a37a6329277f75fdd (diff)
downloadlinux-2734b629525a9dae5bf217cbf0a9651da93d2108.tar.xz
tracing: Add per-element variable support to tracing_map
In order to allow information to be passed between trace events, add support for per-element variables to tracing_map. This provides a means for histograms to associate a value or values with an entry when it's saved or updated, and retrieved by a subsequent event occurrences. Variables can be set using tracing_map_set_var() and read using tracing_map_read_var(). tracing_map_var_set() returns true or false depending on whether or not the variable has been set or not, which is important for event-matching applications. tracing_map_read_var_once() reads the variable and resets it to the 'unset' state, implementing read-once variables, which are also important for event-matching uses. Link: http://lkml.kernel.org/r/7fa001108252556f0c6dd9d63145eabfe3370d1a.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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions