diff options
| author | Gustavo A. R. Silva <[email protected]> | 2018-02-09 17:53:16 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2018-06-21 19:12:43 +0000 |
| commit | 08ae88f8104f486fd4103854119169f3e55dbc4c (patch) | |
| tree | 8b85d4520b0e6ec6249a104365dc3a885dfa09b8 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | softirq: Reorder trace_softirqs_on to prevent lockdep splat (diff) | |
| download | kernel-08ae88f8104f486fd4103854119169f3e55dbc4c.tar.gz kernel-08ae88f8104f486fd4103854119169f3e55dbc4c.zip | |
tracing: Use swap macro in update_max_tr
Make use of the swap macro and remove unnecessary variable _buf_.
This makes the code easier to read and maintain. Also, reduces the
stack usage.
This code was detected with the help of Coccinelle.
Link: http://lkml.kernel.org/r/20180209175316.GA18720@embeddedgus
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
