* perf sleep time profiling: no sched_stat_sleep events?
@ 2016-08-12 22:13 Milian Wolff
0 siblings, 0 replies; only message in thread
From: Milian Wolff @ 2016-08-12 22:13 UTC (permalink / raw)
To: linux-perf-users
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
Hey all,
sending this here in the hope that it may guide people in avoiding this issue
in the future:
I have encountered an issue with a recent Arch Linux Kernel (4.7), where the
the perf script to profile sleep times did not produce any output.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
perf top -e "sched:sched_stat_*"
# wait for some time
0 sched:sched_stat_wait
0 sched:sched_stat_sleep
0 sched:sched_stat_iowait
0 sched:sched_stat_blocked
4K sched:sched_stat_runtime
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The culprit is
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cat /proc/sys/kernel/sched_schedstats
0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Setting that to 1 enables the sched_stat trace points and makes the script
work again as needed.
I wonder: Could perf print a warning when the user tries to trace these events
but they are not enabled?
Thanks
--
Milian Wolff | milian.wolff@kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5903 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-12 22:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-12 22:13 perf sleep time profiling: no sched_stat_sleep events? Milian Wolff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).