Ubuntu-focal-kernel/tools
Yicong Yang 27d3d12a83 perf tools: Fix auto-complete on aarch64
BugLink: https://bugs.launchpad.net/bugs/2017706

[ Upstream commit ffd1240e8f0814262ceb957dbe961f6e0aef1e7a ]

On aarch64 CPU related events are not under event_source/devices/cpu/events,
they're under event_source/devices/armv8_pmuv3_0/events on my machine.
Using current auto-complete script will generate below error:

  [root@localhost bin]# perf stat -e
  ls: cannot access '/sys/bus/event_source/devices/cpu/events': No such file or directory

Fix this by not testing /sys/bus/event_source/devices/cpu/events on
aarch64 machine.

Fixes: 74cd5815d9 ("perf tool: Improve bash command line auto-complete for multiple events with comma")
Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linuxarm@huawei.com
Cc: prime.zeng@hisilicon.com
Link: https://lore.kernel.org/r/20230207035057.43394-1-yangyicong@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-05-12 17:15:05 +02:00
..
accounting
arch parisc: Align parisc MADV_XXX constants with all other architectures 2023-02-01 15:23:43 +01:00
bpf bpftool: Clear errno after libcap's checks 2023-01-06 08:44:03 -08:00
build tools build: Switch to new openssl API for test-libcrypto 2022-10-17 15:01:45 +02:00
cgroup
debugging
firewire
firmware
gpio
hv
iio tools: iio: iio_utils: fix digit calculation 2023-01-06 08:44:38 -08:00
include tools/nolibc/string: Fix memcmp() implementation 2023-01-06 08:44:44 -08:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Fix alen calculation in libbpf_nla_dump_errormsg() 2023-05-12 17:15:01 +02:00
memory-model
nfsd
objtool objtool: Add a missing comma to avoid string concatenation 2023-03-21 10:09:01 +01:00
pci
pcmcia
perf perf tools: Fix auto-complete on aarch64 2023-05-12 17:15:05 +02:00
power tools/power turbostat: fix ICX DRAM power numbers 2022-08-26 11:07:14 +02:00
scripts
spi
testing selftests/net: Interpret UDP_GRO cmsg data as an int value 2023-05-12 17:15:02 +02:00
thermal/tmon tools/thermal: Fix possible path truncations 2022-10-17 15:01:22 +02:00
time
usb
virtio tools/virtio: fix the vringh test for virtio ring changes 2023-04-18 17:21:02 +02:00
vm tools/vm/slabinfo-gnuplot: use "grep -E" instead of "egrep" 2023-02-01 15:21:44 +01:00
wmi
Makefile