Linux Perf Users
 help / color / mirror / Atom feed
* perf stat dumps core when CPU offline
@ 2025-12-03 13:20 Thomas Richter
  2025-12-03 17:47 ` Ian Rogers
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Richter @ 2025-12-03 13:20 UTC (permalink / raw)
  To: linux-perf-use.; +Cc: Jan Polensky

Hi all,

Is this a known issue? Trying to do a perf stat on a CPU which is offline.

# echo 1 > /sys/devices/system/cpu/cpu1/online
# perf stat -C1 -e cycles -- true

 Performance counter stats for 'CPU(s) 1':

           123,965      cycles                                                                

       0.000356838 seconds time elapsed

# echo 0 > /sys/devices/system/cpu/cpu1/online
# perf stat -C1 -e cycles -- true
WARNING: A requested CPU in '1' is not supported by PMU 'cpum_cf' (CPUs 0,2-7) for event 'cycles'
Segmentation fault         (core dumped) perf stat -C1 -e cycles -- true
# 

This happens on linux-next and linux.

Thanks a lot
-- 
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany
--
IBM Deutschland Research & Development GmbH

Vorsitzender des Aufsichtsrats: Wolfgang Wendt

Geschäftsführung: David Faller

Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-03 21:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03 13:20 perf stat dumps core when CPU offline Thomas Richter
2025-12-03 17:47 ` Ian Rogers
2025-12-03 21:51   ` Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox