andikleen / pmu-tools

Intel PMU profiling tools
GNU General Public License v2.0
1.97k stars 330 forks source link

event_download returns incorrect list name in hybrid #507

Open aayasin opened 6 months ago

aayasin commented 6 months ago

Reproducer on MTL with 6.7 kernel

$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import event_download as d
>>> d.eventlist_name()
'/home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-core.json'
>>> 
salabamr@MMM-SUT-0141:~/ayasin/perf-tools/pmu-tools$ ls /home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-core.json
ls: cannot access '/home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-core.json': No such file or directory
salabamr@MMM-SUT-0141:~/ayasin/perf-tools/pmu-tools$ ls /home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-*
/home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-hybridcore-Atom.json  /home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-hybridcore.json
/home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-hybridcore-Core.json  /home/salabamr/.cache/pmu-events/GenuineIntel-6-AA-uncore.json
$ head setup-system.log 
Linux: MMM-SUT-0141 6.7.0-rc8-2024-01-02-intel-next+ #1 SMP PREEMPT_DYNAMIC Tue Jan  2 20:20:59 PST 2024 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME: "Ubuntu 22.04.3 LTS"
NAME: "Ubuntu"
VERSION_ID: "22.04"
VERSION: "22.04.3 LTS (Jammy Jellyfish)"
ID: ubuntu
/sys/kernel/mm/transparent_hugepage/enabled : always [madvise] never