/tools/testing/selftests/powerpc/pmu/ |
D | count_stcx_fail.c | 29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument 43 event_read(&events[0]); in do_count_loop() 44 event_read(&events[1]); in do_count_loop() 45 event_read(&events[2]); in do_count_loop() 47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop() 48 difference = events[0].result.value - expected; in do_count_loop() 49 percentage = (double)difference / events[0].result.value * 100; in do_count_loop() 53 event_report(&events[0]); in do_count_loop() 54 event_report(&events[1]); in do_count_loop() 55 event_report(&events[2]); in do_count_loop() [all …]
|
D | count_instructions.c | 29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument 42 event_read(&events[0]); in do_count_loop() 43 event_read(&events[1]); in do_count_loop() 46 difference = events[0].result.value - expected; in do_count_loop() 47 percentage = (double)difference / events[0].result.value * 100; in do_count_loop() 50 event_report(&events[0]); in do_count_loop() 51 event_report(&events[1]); in do_count_loop() 55 printf("Actual %llu\n", events[0].result.value); in do_count_loop() 59 event_reset(&events[0]); in do_count_loop() 60 event_reset(&events[1]); in do_count_loop() [all …]
|
D | per_event_excludes.c | 25 struct event *e, events[4]; in per_event_excludes() local 34 e = &events[0]; in per_event_excludes() 39 e = &events[1]; in per_event_excludes() 46 e = &events[2]; in per_event_excludes() 53 e = &events[3]; in per_event_excludes() 60 FAIL_IF(event_open(&events[0])); in per_event_excludes() 68 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in per_event_excludes() 83 FAIL_IF(event_read(&events[i])); in per_event_excludes() 84 event_report(&events[i]); in per_event_excludes() 92 FAIL_IF(events[i].result.running != events[i].result.enabled); in per_event_excludes() [all …]
|
/tools/testing/selftests/powerpc/security/ |
D | spectre_v2.c | 25 static int do_count_loop(struct event *events, bool is_p9, s64 *miss_percent) in do_count_loop() argument 38 event_read(&events[0]); in do_count_loop() 39 event_read(&events[1]); in do_count_loop() 43 FAIL_IF(events[0].result.running != events[0].result.enabled); in do_count_loop() 44 FAIL_IF(events[1].result.running != events[1].result.enabled); in do_count_loop() 46 pred = events[0].result.value; in do_count_loop() 47 mpred = events[1].result.value; in do_count_loop() 50 event_read(&events[2]); in do_count_loop() 51 event_read(&events[3]); in do_count_loop() 52 FAIL_IF(events[2].result.running != events[2].result.enabled); in do_count_loop() [all …]
|
/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-filter.tc | 14 echo 'traceoff if child_pid == 0' > events/sched/sched_process_fork/trigger 23 ! echo 'traceoff if a' > events/sched/sched_process_fork/trigger 24 ! echo 'traceoff if common_pid=0' > events/sched/sched_process_fork/trigger 25 ! echo 'traceoff if common_pid==b' > events/sched/sched_process_fork/trigger 26 echo 'traceoff if common_pid == 0' > events/sched/sched_process_fork/trigger 27 echo '!traceoff' > events/sched/sched_process_fork/trigger 28 ! echo 'traceoff if common_pid == child_pid' > events/sched/sched_process_fork/trigger 29 echo 'traceoff if common_pid <= 0' > events/sched/sched_process_fork/trigger 30 echo '!traceoff' > events/sched/sched_process_fork/trigger 31 echo 'traceoff if common_pid >= 0' > events/sched/sched_process_fork/trigger [all …]
|
D | trigger-eventonoff.tc | 12 FEATURE=`grep enable_event events/sched/sched_process_fork/trigger` 19 echo 0 > events/sched/sched_switch/enable 20 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 22 if [ `cat events/sched/sched_switch/enable` != '1*' ]; then 29 echo 1 > events/sched/sched_switch/enable 30 echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 32 if [ `cat events/sched/sched_switch/enable` != '0*' ]; then 39 ! echo 'enable_event:nogroup:noevent' > events/sched/sched_process_fork/trigger 40 ! echo 'disable_event+1' > events/sched/sched_process_fork/trigger 41 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger [all …]
|
D | trigger-multihist.tc | 14 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger 15 echo 'hist:keys=parent_comm:vals=child_pid' >> events/sched/sched_process_fork/trigger 17 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \ 19 grep child events/sched/sched_process_fork/hist > /dev/null || \ 22 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 29 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_fork/trigger 31 grep test_hist events/sched/sched_process_fork/hist > /dev/null || \ 36 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_exit/trigger 38 grep test_hist events/sched/sched_process_exit/hist > /dev/null || \ 41 diffs=`diff events/sched/sched_process_exit/hist events/sched/sched_process_fork/hist | wc -l`
|
D | trigger-traceonoff.tc | 13 echo 'traceoff' > events/sched/sched_process_fork/trigger 23 echo 'traceon' > events/sched/sched_process_fork/trigger 32 ! echo 'traceoff:badparam' > events/sched/sched_process_fork/trigger 33 ! echo 'traceoff+0' > events/sched/sched_process_fork/trigger 34 echo 'traceon' > events/sched/sched_process_fork/trigger 35 ! echo 'traceon' > events/sched/sched_process_fork/trigger 36 ! echo 'traceoff' > events/sched/sched_process_fork/trigger
|
D | trigger-hist.tc | 14 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger 16 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \ 18 grep child events/sched/sched_process_fork/hist > /dev/null || \ 25 echo 'hist:keys=parent_pid,child_pid' > events/sched/sched_process_fork/trigger 27 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \ 34 echo 'hist:keys=parent_comm' > events/sched/sched_process_fork/trigger 37 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 44 echo 'hist:keys=parent_pid,child_pid:sort=child_pid.ascending' > events/sched/sched_process_fork/tr… 55 events/sched/sched_process_fork/hist | cut -d: -f2 ` ||
|
D | trigger-snapshot.tc | 11 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger` 19 echo 1 > events/sched/sched_process_fork/enable 21 echo 'snapshot:1' > events/sched/sched_process_fork/trigger 28 echo 0 > events/sched/sched_process_fork/enable 32 ! echo "snapshot+1" > events/sched/sched_process_fork/trigger 33 echo "snapshot" > events/sched/sched_process_fork/trigger 34 ! echo "snapshot" > events/sched/sched_process_fork/trigger
|
D | trigger-hist-mod.tc | 14 echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/trigger 17 grep "common_pid: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 24 echo 'hist:keys=parent_pid.hex' > events/sched/sched_process_fork/trigger 28 grep "parent_pid: $HEX" events/sched/sched_process_fork/hist > /dev/null || \ 35 echo 'hist:keys=id.syscall' > events/raw_syscalls/sys_exit/trigger 37 grep "id: \(unknown_\|sys_\)" events/raw_syscalls/sys_exit/hist > /dev/null || \ 45 echo 'hist:keys=bytes_req.log2' > events/kmem/kmalloc/trigger 47 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || \
|
D | trigger-trace-marker-synthetic-kernel.tc | 15 echo 'hist:keys=pid:ts0=common_timestamp.usecs' > events/sched/sched_waking/trigger 16 …common_timestamp.usecs-$ts0:onmatch(sched.sched_waking).latency($lat)' > events/ftrace/print/trigg… 17 echo 'hist:keys=common_pid,lat:sort=lat' > events/synthetic/latency/trigger 21 grep 'hitcount: *1$' events/ftrace/print/hist > /dev/null || \ 24 grep 'hitcount: *1$' events/synthetic/latency/hist > /dev/null || \
|
D | trigger-trace-marker-synthetic.tc | 15 echo 'hist:keys=common_pid:ts0=common_timestamp.usecs if buf == "start"' > events/ftrace/print/trig… 16 …stamp.usecs-$ts0:onmatch(ftrace.print).latency($lat) if buf == "end"' >> events/ftrace/print/trigg… 17 echo 'hist:keys=common_pid,lat:sort=lat' > events/synthetic/latency/trigger 21 cnt=`grep 'hitcount: *1$' events/ftrace/print/hist | wc -l` 27 grep 'hitcount: *1$' events/synthetic/latency/hist > /dev/null || \
|
/tools/perf/tests/ |
D | pfm.c | 53 const char *events; in test__pfm_events() member 57 .events = "", in test__pfm_events() 61 .events = "instructions", in test__pfm_events() 65 .events = "instructions,cycles", in test__pfm_events() 69 .events = "stereolab", in test__pfm_events() 73 .events = "instructions,instructions", in test__pfm_events() 77 .events = "stereolab,instructions", in test__pfm_events() 81 .events = "instructions,stereolab", in test__pfm_events() 93 table[i].events, in test__pfm_events() 95 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events() [all …]
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | multi_counter_test.c | 18 struct event events[6]; in multi_counter() local 23 event_init_named(&events[0], 0x1001C, "PM_CMPLU_STALL_THRD"); in multi_counter() 24 event_init_named(&events[1], 0x2D016, "PM_CMPLU_STALL_FXU"); in multi_counter() 25 event_init_named(&events[2], 0x30006, "PM_CMPLU_STALL_OTHER_CMPL"); in multi_counter() 26 event_init_named(&events[3], 0x4000A, "PM_CMPLU_STALL"); in multi_counter() 27 event_init_named(&events[4], 0x600f4, "PM_RUN_CYC"); in multi_counter() 28 event_init_named(&events[5], 0x500fa, "PM_RUN_INST_CMPL"); in multi_counter() 30 event_leader_ebb_init(&events[0]); in multi_counter() 32 event_ebb_init(&events[i]); in multi_counter() 36 events[i].attr.exclude_kernel = 1; in multi_counter() [all …]
|
/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
D | trigger-inter-event-combined-hist.tc | 14 if [ ! -d events/synthetic/waking_latency ]; then 20 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger 21 …h(sched.sched_waking).waking_latency($waking_lat,pid) if comm=="ping"' > events/sched/sched_wakeup… 22 echo 'hist:keys=pid,lat:sort=pid,lat' > events/synthetic/waking_latency/trigger 25 echo 'hist:keys=pid:ts1=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_wakeup/trigger 26 …hed_wakeup).wakeup_latency($wakeup_lat,next_pid) if next_comm=="ping"' > events/sched/sched_switch… 29 …ch(synthetic.wakeup_latency).waking_plus_wakeup_latency($ww_lat,pid)' >> events/synthetic/wakeup_l… 30 echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking_plus_wakeup_latency/trigger 33 if ! grep -q "pid:" events/synthetic/waking_plus_wakeup_latency/hist; then
|
D | trigger-field-variable-support.tc | 14 echo 'hist:keys=comm:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger 15 …_lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' > events/sched/sched_switch… 16 echo 'hist:keys=pid,prio,comm:vals=lat:sort=pid,prio' > events/synthetic/wakeup_latency/trigger 19 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then 23 if ! grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then 27 …lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' >> events/sched/sched_switch… 29 if grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
|
D | trigger-onmatch-onmax-action-hist.tc | 14 if [ ! -d events/synthetic/wakeup_latency ]; then 21 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger 22 …t).save(next_comm,prev_pid,prev_prio,prev_comm) if next_comm=="ping"' >> events/sched/sched_switch… 23 echo 'hist:keys=comm,pid,lat:wakeup_lat=lat:sort=lat' > events/synthetic/wakeup_latency/trigger 26 if [ ! grep -q "ping" events/synthetic/wakeup_latency/hist -o ! grep -q "max:" events/sched/sched_s…
|
D | trigger-trace-action-hist.tc | 14 if [ ! -d events/synthetic/wakeup_latency ]; then 21 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger 22 …e(wakeup_latency,$wakeup_lat,next_pid,next_comm) if next_comm=="ping"' > events/sched/sched_switch… 23 echo 'hist:keys=comm,pid,lat:wakeup_lat=lat:sort=lat' > events/synthetic/wakeup_latency/trigger 27 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
|
D | trigger-onmatch-action-hist.tc | 14 if [ ! -d events/synthetic/wakeup_latency ]; then 21 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger 22 …).wakeup_latency($wakeup_lat,next_pid,next_comm) if next_comm=="ping"' > events/sched/sched_switch… 23 echo 'hist:keys=comm,pid,lat:wakeup_lat=lat:sort=lat' > events/synthetic/wakeup_latency/trigger 26 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
|
D | trigger-synthetic-event-dynstring.tc | 14 if [ ! -d events/synthetic/ping_test_latency ]; then 21 echo 'hist:key=pid:filenamevar=filename:ts0=common_timestamp.usecs' > events/sched/sched_process_ex… 22 …_process_exec).ping_test_latency($lat,$filenamevar) if comm == "ping"' > events/sched/sched_proces… 23 echo 'hist:keys=filename,lat:sort=filename,lat' > events/synthetic/ping_test_latency/trigger 27 if ! grep -q "ping" events/synthetic/ping_test_latency/hist; then
|
/tools/perf/pmu-events/ |
D | Build | 5 pmu-events-y += pmu-events.o 6 JDIR = pmu-events/arch/$(SRCARCH) 9 JDIR_TEST = pmu-events/arch/test 14 # Locate/process JSON files in pmu-events/arch/ 15 # directory and create tables in pmu-events.c. 17 $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JSON_TEST) $(JEVENTS) 18 $(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V)
|
/tools/perf/Documentation/ |
D | itrace.txt | 1 i synthesize instructions events 2 b synthesize branches events (branch misses for Arm SPE) 3 c synthesize branches events (calls only) 4 r synthesize branches events (returns only) 5 x synthesize transactions events 6 w synthesize ptwrite events 7 p synthesize power events 8 o synthesize other events recorded due to the use 10 e synthesize error events 12 f synthesize first level cache events [all …]
|
/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 53 pfd.events = POLLIN; in waiter_entry1ap() 80 pfd.events = POLLIN; in waiter_entry1op() 91 struct epoll_event events[2]; in waiter_entry2a() local 94 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a() 103 struct epoll_event events[2]; in waiter_entry2ap() local 107 pfd.events = POLLIN; in waiter_entry2ap() 109 if (epoll_wait(ctx->efd[0], events, 2, 0) > 0) in waiter_entry2ap() 159 e.events = EPOLLIN; in TEST() 190 e.events = EPOLLIN | EPOLLET; in TEST() 214 struct epoll_event events[2]; in TEST() local [all …]
|
/tools/testing/selftests/ftrace/test.d/kprobe/ |
D | kprobe_args_user.tc | 17 echo 1 > events/kprobes/myevent/enable 18 echo 1 > events/kprobes/myevent2/enable 20 echo 0 > events/kprobes/myevent/enable 21 echo 0 > events/kprobes/myevent2/enable 28 echo 1 > events/kprobes/myevent/enable 30 echo 0 > events/kprobes/myevent/enable
|