Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf scripts python cs-etm: Restore first sample log in verbose mode

The linked commit moved the early return on the first sample to before
the verbose log, so move the log earlier too. Now the first sample is
also logged and not skipped.

Fixes: 2d98dbb4c9c5b09c ("perf scripts python arm-cs-trace-disasm.py: Do not ignore disam first sample")
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Benjamin Gray <bgray@linux.ibm.com>
Cc: coresight@lists.linaro.org
Cc: gankulkarni@os.amperecomputing.com
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ruidong Tian <tianruidong@linux.alibaba.com>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20240723132858.12747-1-james.clark@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

James Clark and committed by
Arnaldo Carvalho de Melo
ae8e4f40 41947446

+4 -5
+4 -5
tools/perf/scripts/python/arm-cs-trace-disasm.py
··· 192 192 ip = sample["ip"] 193 193 addr = sample["addr"] 194 194 195 + if (options.verbose == True): 196 + print("Event type: %s" % name) 197 + print_sample(sample) 198 + 195 199 # Initialize CPU data if it's empty, and directly return back 196 200 # if this is the first tracing event for this CPU. 197 201 if (cpu_data.get(str(cpu) + 'addr') == None): 198 202 cpu_data[str(cpu) + 'addr'] = addr 199 203 return 200 - 201 - 202 - if (options.verbose == True): 203 - print("Event type: %s" % name) 204 - print_sample(sample) 205 204 206 205 # If cannot find dso so cannot dump assembler, bail out 207 206 if (dso == '[unknown]'):