diff options
| author | Tom Zanussi <[email protected]> | 2018-01-15 20:51:52 -0600 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2018-03-10 16:05:56 -0500 |
| commit | 100719dcef447aa0c90301f919e81ae477b32bf2 (patch) | |
| tree | d8a64b58a3e34b4ca481ba6b4cdf6ac622ded6c1 /net/switchdev/switchdev.c | |
| parent | 2ece94fbd25c70543dd073d10569e08c3e3b4a7f (diff) | |
tracing: Add simple expression support to hist triggers
Add support for simple addition, subtraction, and unary expressions
(-(expr) and expr, where expr = b-a, a+b, a+b+c) to hist triggers, in
order to support a minimal set of useful inter-event calculations.
These operations are needed for calculating latencies between events
(timestamp1-timestamp0) and for combined latencies (latencies over 3
or more events).
In the process, factor out some common code from key and value
parsing.
Link: http://lkml.kernel.org/r/9a9308ead4fe32a433d9c7e95921fb798394f6b2.1516069914.git.tom.zanussi@linux.intel.com
Signed-off-by: Tom Zanussi <[email protected]>
[kbuild test robot fix, add static to parse_atom()]
Signed-off-by: Fengguang Wu <[email protected]>
[ Replaced '//' comments with normal /* */ comments ]
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions