Home
last modified time | relevance | path

Searched refs:sched (Results 1 – 25 of 43) sorted by relevance

12

/tools/perf/
Dbuiltin-sched.c109 int (*switch_event)(struct perf_sched *sched, struct perf_evsel *evsel,
112 int (*runtime_event)(struct perf_sched *sched, struct perf_evsel *evsel,
115 int (*wakeup_event)(struct perf_sched *sched, struct perf_evsel *evsel,
119 int (*fork_event)(struct perf_sched *sched, union perf_event *event,
122 int (*migrate_task_event)(struct perf_sched *sched,
206 static void burn_nsecs(struct perf_sched *sched, u64 nsecs) in burn_nsecs() argument
212 } while (T1 + sched->run_measurement_overhead < T0 + nsecs); in burn_nsecs()
225 static void calibrate_run_measurement_overhead(struct perf_sched *sched) in calibrate_run_measurement_overhead() argument
232 burn_nsecs(sched, 0); in calibrate_run_measurement_overhead()
237 sched->run_measurement_overhead = min_delta; in calibrate_run_measurement_overhead()
[all …]
Dcommand-list.txt23 perf-sched mainporcelain common
/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-filter.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
31 echo 'traceoff if child_pid == 0' > events/sched/sched_process_fork/trigger
40 ! echo 'traceoff if a' > events/sched/sched_process_fork/trigger
41 ! echo 'traceoff if common_pid=0' > events/sched/sched_process_fork/trigger
42 ! echo 'traceoff if common_pid==b' > events/sched/sched_process_fork/trigger
43 echo 'traceoff if common_pid == 0' > events/sched/sched_process_fork/trigger
44 echo '!traceoff' > events/sched/sched_process_fork/trigger
45 ! echo 'traceoff if common_pid == child_pid' > events/sched/sched_process_fork/trigger
46 echo 'traceoff if common_pid <= 0' > events/sched/sched_process_fork/trigger
[all …]
Dtrigger-eventonoff.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
29 FEATURE=`grep enable_event events/sched/sched_process_fork/trigger`
36 echo 0 > events/sched/sched_switch/enable
37 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
39 if [ `cat events/sched/sched_switch/enable` != '1*' ]; then
46 echo 1 > events/sched/sched_switch/enable
47 echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
49 if [ `cat events/sched/sched_switch/enable` != '0*' ]; then
56 ! echo 'enable_event:nogroup:noevent' > events/sched/sched_process_fork/trigger
[all …]
Dtrigger-multihist.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
26 if [ ! -f events/sched/sched_process_fork/hist ]; then
38 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
39 echo 'hist:keys=parent_comm:vals=child_pid' >> events/sched/sched_process_fork/trigger
41 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
43 grep child events/sched/sched_process_fork/hist > /dev/null || \
46 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
53 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_fork/trigger
55 grep test_hist events/sched/sched_process_fork/hist > /dev/null || \
[all …]
Dtrigger-hist.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
26 if [ ! -f events/sched/sched_process_fork/hist ]; then
36 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
38 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
40 grep child events/sched/sched_process_fork/hist > /dev/null || \
47 echo 'hist:keys=parent_pid,child_pid' > events/sched/sched_process_fork/trigger
49 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \
56 echo 'hist:keys=parent_comm' > events/sched/sched_process_fork/trigger
59 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
[all …]
Dtrigger-traceonoff.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
31 echo 'traceoff' > events/sched/sched_process_fork/trigger
41 echo 'traceon' > events/sched/sched_process_fork/trigger
50 ! echo 'traceoff:badparam' > events/sched/sched_process_fork/trigger
51 ! echo 'traceoff+0' > events/sched/sched_process_fork/trigger
52 echo 'traceon' > events/sched/sched_process_fork/trigger
53 ! echo 'traceon' > events/sched/sched_process_fork/trigger
54 ! echo 'traceoff' > events/sched/sched_process_fork/trigger
Dtrigger-snapshot.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
29 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger`
37 echo 1 > events/sched/sched_process_fork/enable
39 echo 'snapshot:1' > events/sched/sched_process_fork/trigger
46 echo 0 > events/sched/sched_process_fork/enable
50 ! echo "snapshot+1" > events/sched/sched_process_fork/trigger
51 echo "snapshot" > events/sched/sched_process_fork/trigger
52 ! echo "snapshot" > events/sched/sched_process_fork/trigger
Dtrigger-stacktrace.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
29 FEATURE=`grep stacktrace events/sched/sched_process_fork/trigger`
38 echo 'stacktrace' > events/sched/sched_process_fork/trigger
47 ! echo "stacktrace:foo" > events/sched/sched_process_fork/trigger
48 echo "stacktrace" > events/sched/sched_process_fork/trigger
49 ! echo "stacktrace" > events/sched/sched_process_fork/trigger
Dtrigger-hist-mod.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
26 if [ ! -f events/sched/sched_process_fork/hist ]; then
36 echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/trigger
39 grep "common_pid: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
46 echo 'hist:keys=parent_pid.hex' > events/sched/sched_process_fork/trigger
50 grep "parent_pid: $HEX" events/sched/sched_process_fork/hist > /dev/null || \
/tools/perf/scripts/python/bin/
Dsched-migration-record2 perf record -m 16384 -e sched:sched_wakeup -e sched:sched_wakeup_new -e sched:sched_switch -e sched
Dsched-migration-report3 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/sched-migration.py
/tools/perf/Documentation/
Dperf-sched.txt1 perf-sched(1)
6 perf-sched - Tool to trace/measure scheduler properties (latencies)
11 'perf sched' {record|latency|map|replay|script}
15 There are five variants of perf sched:
17 'perf sched record <command>' to record the scheduling events
20 'perf sched latency' to report the per task scheduling latencies
23 'perf sched script' to see a detailed trace of the workload that
26 'perf sched replay' to simulate the workload that was recorded
27 via perf sched record. (this is done by starting up mockup threads
33 'perf sched map' to print a textual context-switching outline of
[all …]
Dperf-bench.txt31 % perf bench sched pipe # with no style specified
42 % perf bench --format=simple sched pipe # specified simple
49 'sched'::
64 SUITES FOR 'sched'
92 % perf bench sched messaging # run with default
98 % perf bench sched messaging -t -g 20 # be multi-thread, with 20 groups
119 % perf bench sched pipe
126 % perf bench sched pipe -l 1000 # loop 1000
/tools/testing/selftests/ftrace/test.d/event/
Dsubsystem-enable.tc19 if [ ! -f set_event -o ! -d events/sched ]; then
38 echo 1 > events/sched/enable
49 echo 0 > events/sched/enable
Devent-enable.tc19 if [ ! -f set_event -o ! -d events/sched ]; then
38 echo 1 > events/sched/sched_switch/enable
49 echo 0 > events/sched/sched_switch/enable
Devent-pid.tc21 if [ ! -f set_event -o ! -d events/sched ]; then
34 echo 1 > events/sched/sched_switch/enable
61 echo 1 > events/sched/sched_switch/enable
/tools/perf/scripts/perl/bin/
Dwakeup-latency-record2 perf record -e sched:sched_switch -e sched:sched_wakeup $@
/tools/perf/bench/
DBuild1 perf-y += sched-messaging.o
2 perf-y += sched-pipe.o
/tools/testing/selftests/x86/
Dfsgsbase.c383 for (int sched = 0; sched < 2; sched++) { in main() local
384 mov_0_gs(0, !!sched); in main()
385 mov_0_gs(1, !!sched); in main()
386 mov_0_gs(0x200000000, !!sched); in main()
/tools/perf/scripts/perl/
Dwakeup-latency.pl28 sub sched::sched_switch subroutine
51 sub sched::sched_wakeup subroutine
/tools/testing/selftests/rcutorture/configs/rcu/
DTREE05.boot1 rcutorture.torture_type=sched
DTREE08.boot1 rcutorture.torture_type=sched
/tools/testing/selftests/ftrace/test.d/00basic/
Dbasic4.tc5 grep -q sched available_events && exit 0 || exit $FAIL
/tools/testing/selftests/ftrace/test.d/instances/
Dinstance-event.tc45 echo 1 > foo/events/sched/sched_switch

12