diff options
author | Jin Yao <[email protected]> | 2021-05-27 08:16:08 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-06-01 11:05:30 -0300 |
commit | a6d9de8427584553b71492071f6ffd7c92ec8b99 (patch) | |
tree | 258fcbc58cd7f4e73a95280f259a0d975868768d /tools/perf/scripts/python/check-perf-trace.py | |
parent | 4a9086adc329c9460aefc563969b24eed534adba (diff) |
perf mem: Fix wrong verbose output for recording events
Current code:
for (j = 0; j < argc; j++, i++)
rec_argv[i] = argv[j];
if (verbose > 0) {
pr_debug("calling: record ");
while (rec_argv[j]) {
pr_debug("%s ", rec_argv[j]);
j++;
}
pr_debug("\n");
}
The entries of argv[] are copied to the end of rec_argv[], not
copied to the beginning of rec_argv[]. So the index j at
rec_argv[] doesn't point to the first event.
Now we record the start index and end index for events in rec_argv[],
and print them if verbose is enabled.
Signed-off-by: Jin Yao <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions