Ruidong Tian
2d98dbb4c9
perf scripts python arm-cs-trace-disasm.py: Do not ignore disam first sample
...
arm-cs-trace-disasm ignore disam the first branch sample, For example as
follow, the instructions beteween 0x0000ffffae878750 and
0x0000ffffae878754 is lose:
ARM CoreSight Trace Data Assembler Dump
Event type: branches:uH
Sample = { cpu: 0000 addr: 0x0000ffffae878750 phys_addr: 0x0000000000000000 ip: 0x0000000000000000 pid: 4003489 tid: 4003489 period: 1 time: 26765151766034 }
Event type: branches:uH
Sample = { cpu: 0000 addr: 0x0000000000000000 phys_addr: 0x0000000000000000 ip: 0x0000ffffae878754 pid: 4003489 tid: 4003489 period: 1 time: 26765151766034 }
Initialize cpu_data earlier to fix it:
ARM CoreSight Trace Data Assembler Dump
Event type: branches:uH
Sample = { cpu: 0000 addr: 0x0000000000000000 phys_addr: 0x0000000000000000 ip: 0x0000ffffae878754 pid: 4003489 tid: 4003489 period: 1 time: 26765151766034 }
0000000000028740 <ioctl>: (base address is 0x0000ffffae850000)
28750: b13ffc1f cmn x0, #4095
28754: 54000042 b.hs 0x2875c <ioctl+0x1c>
test 4003489/4003489 [0000] 26765.151766034 __GI___ioctl+0x14 /usr/lib64/libc-2.32.so
Event type: branches:uH
Sample = { cpu: 0000 addr: 0x0000ffffa67535ac phys_addr: 0x0000000000000000 ip: 0x0000000000000000 pid: 4003489 tid: 4003489 period: 1 time: 26765151766034 }
Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: Ruidong Tian <tianruidong@linux.alibaba.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Al Grant <al.grant@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: Tor Jeremiassen <tor@ti.com>
Link: https://lore.kernel.org/r/20231214123304.34087-4-tianruidong@linux.alibaba.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-12-20 14:31:59 -03:00
..
2023-08-24 14:39:43 -03:00
2023-08-15 16:41:48 -03:00
2023-12-20 14:31:59 -03:00
2019-03-06 18:10:46 -03:00
2023-11-23 10:56:09 -03:00
2019-03-06 18:11:11 -03:00
2022-02-15 17:15:07 -03:00
2022-02-15 17:15:05 -03:00
2023-11-23 10:56:09 -03:00
2019-03-06 18:09:14 -03:00
2023-01-19 09:29:58 -03:00
2020-09-23 12:58:53 -03:00
2023-08-24 14:41:49 -03:00
2023-04-12 12:19:42 -03:00
2021-06-01 10:05:08 -03:00
2019-03-06 18:09:14 -03:00
2023-05-02 08:36:14 -03:00
2023-05-02 08:36:14 -03:00
2019-02-25 17:16:57 -03:00
2019-03-06 18:09:14 -03:00
2019-03-06 18:09:14 -03:00
2019-03-06 18:09:14 -03:00
2019-02-25 17:17:07 -03:00
2019-03-06 18:09:14 -03:00
2019-03-06 18:09:14 -03:00
2023-04-17 22:24:14 -03:00