Home
last modified time | relevance | path

Searched refs:hw_event (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open02.c119 struct perf_event_attr hw_event; in count_hardware_counters() local
124 memset(&hw_event, 0, sizeof(struct perf_event_attr)); in count_hardware_counters()
126 hw_event.type = PERF_TYPE_HARDWARE; in count_hardware_counters()
127 hw_event.size = sizeof(struct perf_event_attr); in count_hardware_counters()
128 hw_event.disabled = 1; in count_hardware_counters()
129 hw_event.config = PERF_COUNT_HW_INSTRUCTIONS; in count_hardware_counters()
130 hw_event.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | in count_hardware_counters()
134 fdarry[i] = perf_event_open(&hw_event, 0, -1, -1, 0); in count_hardware_counters()
201 struct perf_event_attr tsk_event, hw_event; in setup() local
233 memset(&hw_event, 0, sizeof(struct perf_event_attr)); in setup()
[all …]
Dperf_event_open01.c121 static int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, in perf_event_open() argument
126 ret = ltp_syscall(__NR_perf_event_open, hw_event, pid, cpu, in perf_event_open()
/third_party/ltp/testcases/cve/
Dcve-2015-3290.c303 static int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, in perf_event_open() argument
308 ret = tst_syscall(__NR_perf_event_open, hw_event, pid, cpu, in perf_event_open()