/tools/testing/selftests/powerpc/pmu/ |
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 37 e = &events[0]; in per_event_excludes() 42 e = &events[1]; in per_event_excludes() 49 e = &events[2]; in per_event_excludes() 56 e = &events[3]; in per_event_excludes() 63 FAIL_IF(event_open(&events[0])); in per_event_excludes() 71 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in per_event_excludes() 86 FAIL_IF(event_read(&events[i])); in per_event_excludes() 87 event_report(&events[i]); in per_event_excludes() 95 FAIL_IF(events[i].result.running != events[i].result.enabled); in per_event_excludes() [all …]
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | multi_counter_test.c | 18 struct event events[6]; in multi_counter() local 21 event_init_named(&events[0], 0x1001C, "PM_CMPLU_STALL_THRD"); in multi_counter() 22 event_init_named(&events[1], 0x2D016, "PM_CMPLU_STALL_FXU"); in multi_counter() 23 event_init_named(&events[2], 0x30006, "PM_CMPLU_STALL_OTHER_CMPL"); in multi_counter() 24 event_init_named(&events[3], 0x4000A, "PM_CMPLU_STALL"); in multi_counter() 25 event_init_named(&events[4], 0x600f4, "PM_RUN_CYC"); in multi_counter() 26 event_init_named(&events[5], 0x500fa, "PM_RUN_INST_CMPL"); in multi_counter() 28 event_leader_ebb_init(&events[0]); in multi_counter() 30 event_ebb_init(&events[i]); in multi_counter() 34 events[i].attr.exclude_kernel = 1; in multi_counter() [all …]
|
/tools/testing/selftests/ftrace/test.d/kprobe/ |
D | kprobe_args.tc | 6 echo 0 > events/enable 10 test -d events/kprobes/testprobe 11 echo 1 > events/kprobes/testprobe/enable 13 echo 0 > events/kprobes/testprobe/enable 15 test -d events/kprobes/testprobe && exit 1 || exit 0
|
D | kretprobe_args.tc | 6 echo 0 > events/enable 10 test -d events/kprobes/testprobe2 11 echo 1 > events/kprobes/testprobe2/enable 13 echo 0 > events/kprobes/testprobe2/enable 15 test -d events/kprobes/testprobe2 && exit 1 || exit 0
|
D | busy_check.tc | 6 echo 0 > events/enable 9 test -d events/kprobes/myevent 10 echo 1 > events/kprobes/myevent/enable 12 echo 0 > events/kprobes/myevent/enable
|
D | add_and_remove.tc | 6 echo 0 > events/enable 10 test -d events/kprobes/myevent
|
/tools/perf/tests/ |
D | parse-no-sample-id-all.c | 38 static int process_events(union perf_event **events, size_t count) in process_events() argument 45 err = process_event(&evlist, events[i]); in process_events() 98 union perf_event *events[] = { in test__parse_no_sample_id_all() local 104 err = process_events(events, ARRAY_SIZE(events)); in test__parse_no_sample_id_all()
|
D | switch-tracking.c | 203 static int add_event(struct perf_evlist *evlist, struct list_head *events, in add_event() argument 215 list_add(&node->list, events); in add_event() 232 static void free_event_nodes(struct list_head *events) in free_event_nodes() argument 236 while (!list_empty(events)) { in free_event_nodes() 237 node = list_entry(events->next, struct event_node, list); in free_event_nodes() 257 LIST_HEAD(events); in process_events() 264 ret = add_event(evlist, &events, event); in process_events() 279 list_for_each_entry(node, &events, list) in process_events() 296 free_event_nodes(&events); in process_events()
|
D | attr.py | 149 def load_events(self, path, events): argument 169 events[section] = e 226 def resolve_groups(self, events): argument 227 for name, event in events.items(): 232 for iname, ievent in events.items():
|
/tools/perf/Documentation/ |
D | perf-timechart.txt | 17 'perf timechart record <command>' to record the system level events 19 and CPU events (task switches, running times, CPU power states, etc), 24 on the events in the perf.data file, timechart will contain scheduler/cpu 25 events or IO events. 28 Upper bar shows incoming events (disk reads, ingress network packets). 29 Lower bar shows outgoing events (disk writes, egress network packets). 68 Don't draw EAGAIN IO events. 70 Draw small events as if they lasted min-time. Useful when you need 75 Merge events that are merge-dist nanoseconds apart. 85 Record only power-related events [all …]
|
D | perf-trace.txt | 16 This command will show the events associated with the target, initially 17 syscalls, but other system events like pagefaults, task lifetime events, 18 scheduling events, etc. 22 but the session needs to include the raw_syscalls events (-e 'raw_syscalls:*'). 24 automatically include the raw_syscalls events when writing events to a file. 38 List of events to show, currently only syscall names. 48 Record events on existing process ID (comma separated list). 52 Record events on existing thread ID (comma separated list). 56 Record events in threads owned by uid. Name or number. 80 Show only events that had a duration greater than N.M ms. [all …]
|
D | perf-lock.txt | 6 perf-lock - Analyze lock events 18 'perf lock record <command>' records lock events 21 results of lock events. 25 'perf lock script' shows raw lock events.
|
D | perf-inject.txt | 6 perf-inject - Filter to augment the events stream with additional information 16 point the processing code can inject other events into the event stream - in 21 needs userspace processing to augment the events stream with additional 40 Merge sched_stat and sched_switch for getting events where and how long
|
D | perf-script.txt | 31 'perf script record <script> <command>' to record the events required 34 language extension. If <command> is not specified, the events are 46 record the events required for <script> and to run the <script> 50 not specified, the events are recorded using the -a (system-wide) 59 'perf script <top-script>' to both record the events required for 113 Do various checks like samples ordering and lost events. 137 The first -f suppresses trace events (field list is ""), but then the 141 "Overriding previous field request for all events." 147 The first -f sets the fields for all events and the second -f 148 suppresses trace events. The user is given a warning message about [all …]
|
D | perf-list.txt | 23 more modifiers. Modifiers allow the user to restrict the events to be 48 clocks not halted) and 0xC1 (micro-ops retired). Both events map to 95 Without options all known events will be listed. 99 . 'hw' or 'hardware' to list hardware events such as cache-misses, etc. 101 . 'sw' or 'software' to list software events such as context switches, etc. 103 . 'cache' or 'hwcache' to list hardware cache events such as L1-dcache-loads, etc. 105 . 'tracepoint' to list all tracepoint events, alternatively use 109 . 'pmu' to print the kernel supplied PMU events. 112 events, printing the ones that match. 114 One or more types can be used at the same time, listing the events for the
|
D | perf-kvm.txt | 54 of KVM events. Currently, vmexit, mmio (x86 only) and ioport (x86 only) 55 events are supported. 'perf kvm stat record <command>' records kvm events 56 and the events between start and end <command>. 58 events. 60 'perf kvm stat report' reports statistical data which includes events 103 analyze events which occur on this vcpu. (default: all vcpus) 114 Analyze events only for given process ID(s) (comma separated list). 134 Analyze events only for given process ID(s) (comma separated list). 137 analyze events which occur on this vcpu. (default: all vcpus) 151 Show events other than HLT (x86 only) or Wait state (s390 only)
|
D | perf-stat.txt | 29 (use 'perf list' to list all events) or a raw PMU 38 stat events on existing process id (comma separated list) 42 stat events on existing thread id (comma separated list) 57 -d: detailed events, L1 and LLC data cache 58 -d -d: more detailed events, dTLB and iTLB events 59 -d -d -d: very detailed events, adding prefetch events 102 corresponding events, i.e., they always refer to events defined earlier on the command
|
D | perf-record.txt | 31 - a symbolic event name (use 'perf list' to list all events) 55 Record events on existing process ID (comma separated list). 59 Record events on existing thread ID (comma separated list). 65 Record events in threads owned by uid. Name or number. 161 corresponding events, i.e., they always refer to events defined earlier on the command 193 levels are subject to permissions. When sampling on multiple events, branch stack sampling 194 is enabled for all the sampling events. The sampled branch type is the same for all events. 201 abort events and some memory events in precise mode on modern Intel CPUs. 204 Record transaction flags for transaction related events.
|
/tools/perf/util/ |
D | trace-event-parse.c | 39 if (!pevent->events) in get_common_field() 42 event = pevent->events[0]; in get_common_field() 203 if (!pevent || !pevent->events) in trace_find_next_event() 208 return pevent->events[0]; in trace_find_next_event() 211 if (idx < pevent->nr_events && event == pevent->events[idx]) { in trace_find_next_event() 215 return pevent->events[idx]; in trace_find_next_event() 219 if (event == pevent->events[idx - 1]) in trace_find_next_event() 220 return pevent->events[idx]; in trace_find_next_event()
|
D | ordered-events.c | 27 list_add(&new->list, &oe->events); in queue_event() 40 if (p == &oe->events) { in queue_event() 41 list_add_tail(&new->list, &oe->events); in queue_event() 51 if (p == &oe->events) { in queue_event() 52 list_add(&new->list, &oe->events); in queue_event() 160 struct list_head *head = &oe->events; in __ordered_events__flush() 227 struct list_head *head = &oe->events; in ordered_events__flush() 269 INIT_LIST_HEAD(&oe->events); in ordered_events__init()
|
/tools/perf/ |
D | design.txt | 6 CPUs. These registers count the number of certain types of hw events: such 9 trigger interrupts when a threshold number of events have passed - and can 65 __u32 wakeup_events; /* wakeup every n events */ 100 * Common hardware events, generalized by the kernel: 111 These are standardized types of events that work relatively uniformly 119 and accessed as raw events. For example, to count "External bus 120 cycles while bus lock signal asserted" events on Intel Core CPUs, pass 124 software events, selected by 'event_id': 129 * physical and sw events of the kernel (and allow the profiling of them as 146 /debug/tracing/events/*/*/id [all …]
|
D | builtin-probe.c | 59 struct perf_probe_event events[MAX_PROBES]; member 70 struct perf_probe_event *pev = ¶ms.events[params.nevents]; in parse_probe_event() 233 struct perf_probe_event *pev = ¶ms.events[params.nevents]; in opt_show_vars() 281 clear_perf_probe_event(params.events + i); in cleanup_params() 491 ret = show_available_vars(params.events, params.nevents, in __cmd_probe() 513 ret = add_perf_probe_events(params.events, params.nevents, in __cmd_probe()
|
D | Makefile.perf | 195 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c 196 …X)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-ev… 198 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y 199 …$(QUIET_BISON)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $(OUTPUT)util/parse-even… 207 $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c 260 LIB_H += util/parse-events.h 267 LIB_H += util/ordered-events.h 324 LIB_OBJS += $(OUTPUT)util/parse-events.o 352 LIB_OBJS += $(OUTPUT)util/ordered-events.o 357 LIB_OBJS += $(OUTPUT)util/parse-events-flex.o [all …]
|
/tools/perf/tests/attr/ |
D | test-stat-C0 | 7 # events are enabled by default when attached to cpu
|