diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-07-13 16:33:09 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-07-13 16:33:09 -0400 |
| commit | aa0a3247c01535303fc39c2bf0beb4493688a314 (patch) | |
| tree | 992c35dad9ed29994b67f9455f0eca605c963356 /tools/perf/builtin-stat.c | |
| parent | 75adbd1386796c1234035996c6aec3ede4060eb2 (diff) | |
| parent | 6e1d33b24a2b4aebcb05782e937ebc9a7a4a3f50 (diff) | |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf tool fixes from Ingo Molnar:
"Misc tooling fixes: python3 related fixes, gcc8 fix, bashism fixes and
some other smaller fixes"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf tools: Use python-config --includes rather than --cflags
perf script python: Fix dict reference counting
perf stat: Fix --interval_clear option
perf tools: Fix compilation errors on gcc8
perf test shell: Prevent temporary editor files from being considered test scripts
perf llvm-utils: Remove bashism from kernel include fetch script
perf test shell: Make perf's inet_pton test more portable
perf test shell: Replace '|&' with '2>&1 |' to work with more shells
perf scripts python: Add Python 3 support to EventClass.py
perf scripts python: Add Python 3 support to sched-migration.py
perf scripts python: Add Python 3 support to Util.py
perf scripts python: Add Python 3 support to SchedGui.py
perf scripts python: Add Python 3 support to Core.py
perf tools: Generate a Python script compatible with Python 2 and 3
Diffstat (limited to 'tools/perf/builtin-stat.c')
| -rw-r--r-- | tools/perf/builtin-stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 22547a490e1f..05be023c3f0e 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
| @@ -1742,7 +1742,7 @@ static void print_interval(char *prefix, struct timespec *ts) | |||
| 1742 | } | 1742 | } |
| 1743 | } | 1743 | } |
| 1744 | 1744 | ||
| 1745 | if ((num_print_interval == 0 && metric_only) || interval_clear) | 1745 | if ((num_print_interval == 0 || interval_clear) && metric_only) |
| 1746 | print_metric_headers(" ", true); | 1746 | print_metric_headers(" ", true); |
| 1747 | if (++num_print_interval == 25) | 1747 | if (++num_print_interval == 25) |
| 1748 | num_print_interval = 0; | 1748 | num_print_interval = 0; |
