Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open02.c118 static int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, in perf_event_open() argument
123 ret = ltp_syscall(__NR_perf_event_open, hw_event, pid, cpu, in perf_event_open()
147 struct perf_event_attr hw_event; in count_hardware_counters() local
152 memset(&hw_event, 0, sizeof(struct perf_event_attr)); in count_hardware_counters()
154 hw_event.type = PERF_TYPE_HARDWARE; in count_hardware_counters()
155 hw_event.size = sizeof(struct perf_event_attr); in count_hardware_counters()
156 hw_event.disabled = 1; in count_hardware_counters()
157 hw_event.config = PERF_COUNT_HW_INSTRUCTIONS; in count_hardware_counters()
158 hw_event.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | in count_hardware_counters()
162 fdarry[i] = perf_event_open(&hw_event, 0, -1, -1, 0); in count_hardware_counters()
[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()
/external/tensorflow/tensorflow/core/platform/profile_utils/
Dandroid_armv7a_cpu_utils_helper.cc100 int AndroidArmV7ACpuUtilsHelper::OpenPerfEvent(perf_event_attr *const hw_event, in OpenPerfEvent() argument
105 syscall(__NR_perf_event_open, hw_event, pid, cpu, group_fd, flags); in OpenPerfEvent()
Dandroid_armv7a_cpu_utils_helper.h49 int OpenPerfEvent(perf_event_attr *const hw_event, const pid_t pid,
/external/linux-kselftest/tools/testing/selftests/powerpc/
Dutils.c174 static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid, in perf_event_open() argument
177 return syscall(__NR_perf_event_open, hw_event, pid, cpu, in perf_event_open()
/external/ltp/testcases/cve/
Dcve-2015-3290.c324 static int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, in perf_event_open() argument
329 ret = tst_syscall(__NR_perf_event_open, hw_event, pid, cpu, in perf_event_open()
/external/honggfuzz/linux/
Dperf.c111 struct perf_event_attr* hw_event, pid_t pid, int cpu, int group_fd, unsigned long flags) { in perf_event_open() argument
112 return syscall(__NR_perf_event_open, hw_event, (uintptr_t)pid, (uintptr_t)cpu, in perf_event_open()