Home
last modified time | relevance | path

Searched refs:perf_event_attr (Results 1 – 25 of 55) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open02.c74 static int perf_event_open(struct perf_event_attr *event, pid_t pid, in perf_event_open()
149 struct perf_event_attr hw_event; in count_hardware_counters()
154 memset(&hw_event, 0, sizeof(struct perf_event_attr)); in count_hardware_counters()
157 hw_event.size = sizeof(struct perf_event_attr); in count_hardware_counters()
231 struct perf_event_attr tsk_event, hw_event; in setup()
263 memset(&hw_event, 0, sizeof(struct perf_event_attr)); in setup()
264 memset(&tsk_event, 0, sizeof(struct perf_event_attr)); in setup()
267 tsk_event.size = sizeof(struct perf_event_attr); in setup()
272 hw_event.size = sizeof(struct perf_event_attr); in setup()
Dperf_event_open01.c79 static struct perf_event_attr pe;
114 pe.size = sizeof(struct perf_event_attr); in setup()
121 static int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, in perf_event_open()
/external/strace/
Dperf.c51 struct perf_event_attr *attr;
68 struct perf_event_attr *attr; in fetch_perf_event_attr()
71 if (umove(tcp, addr + offsetof(struct perf_event_attr, size), &size)) { in fetch_perf_event_attr()
92 size = offsetofend(struct perf_event_attr, config); in fetch_perf_event_attr()
126 struct perf_event_attr *attr; in print_perf_event_attr()
139 if (offsetof(struct perf_event_attr, _field) >= size) \ in print_perf_event_attr()
150 if (umove(tcp, addr + offsetof(struct perf_event_attr, size), in print_perf_event_attr()
Dconfigure.ac362 struct perf_event_attr.precise_ip,
363 struct perf_event_attr.mmap_data,
364 struct perf_event_attr.sample_id_all,
365 struct perf_event_attr.exclude_host,
366 struct perf_event_attr.exclude_guest,
367 struct perf_event_attr.exclude_callchain_kernel,
368 struct perf_event_attr.exclude_callchain_user,
369 struct perf_event_attr.mmap2,
370 struct perf_event_attr.comm_exec,
371 struct perf_event_attr.use_clockid,
[all …]
/external/tensorflow/tensorflow/core/platform/profile_utils/
Dandroid_armv7a_cpu_utils_helper.cc81 perf_event_attr pe; in InitializeInternal()
83 memset(&pe, 0, sizeof(perf_event_attr)); in InitializeInternal()
85 pe.size = sizeof(perf_event_attr); in InitializeInternal()
100 int AndroidArmV7ACpuUtilsHelper::OpenPerfEvent(perf_event_attr *const hw_event, in OpenPerfEvent()
Dandroid_armv7a_cpu_utils_helper.h28 struct perf_event_attr;
49 int OpenPerfEvent(perf_event_attr *const hw_event, const pid_t pid,
/external/ltp/m4/
Dltp-perf_event_open.m48 [Define to 1 if you have struct perf_event_attr])
9 AC_MSG_CHECKING([for perf_event_attr in linux/perf_event.h])
13 struct perf_event_attr pe;
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/lib/
DPerfHelper.h24 struct perf_event_attr;
52 const perf_event_attr *attribute() const;
61 perf_event_attr *Attr;
DPerfHelper.cpp60 Attr = new perf_event_attr(); in PerfEvent()
84 const perf_event_attr *PerfEvent::attribute() const { return Attr; } in attribute()
97 perf_event_attr AttrCopy = *Event.attribute(); in Counter()
/external/perfetto/src/profiling/perf/
Devent_config.h64 perf_event_attr* perf_attr() const { in perf_attr()
65 return const_cast<perf_event_attr*>(&perf_event_attr_); in perf_attr()
85 struct perf_event_attr perf_event_attr_ = {};
Devent_reader.h102 perf_event_attr event_attr,
110 const perf_event_attr event_attr_;
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_linux.cc83 sizeof(struct perf_event_attr));
84 CHECK_SIZE_AND_OFFSET(perf_event_attr, type);
85 CHECK_SIZE_AND_OFFSET(perf_event_attr, size);
/external/strace/tests-m32/
Dperf_event_open.c146 print_event_attr(struct perf_event_attr *attr_ptr, size_t size, in print_event_attr()
158 offsetof(struct perf_event_attr, config) + in print_event_attr()
164 struct perf_event_attr *attr; in print_event_attr()
677 struct perf_event_attr *ptr; in main()
680 ATTR_REC(sizeof(struct perf_event_attr)), in main()
695 TAIL_ALLOC_OBJECT_CONST_PTR(struct perf_event_attr, small_attr); in main()
698 struct perf_event_attr *attr; in main()
718 { (struct perf_event_attr *) (uintptr_t) 0xfffffacefffffeedULL, in main()
739 struct perf_event_attr *attr = attrs[i % ARRAY_SIZE(attrs)].ptr; in main()
Dperf_event_open_nonverbose.c66 TAIL_ALLOC_OBJECT_CONST_PTR(struct perf_event_attr, attr); in main()
72 struct perf_event_attr *attr; in main()
/external/strace/tests/
Dperf_event_open.c146 print_event_attr(struct perf_event_attr *attr_ptr, size_t size, in print_event_attr()
158 offsetof(struct perf_event_attr, config) + in print_event_attr()
164 struct perf_event_attr *attr; in print_event_attr()
677 struct perf_event_attr *ptr; in main()
680 ATTR_REC(sizeof(struct perf_event_attr)), in main()
695 TAIL_ALLOC_OBJECT_CONST_PTR(struct perf_event_attr, small_attr); in main()
698 struct perf_event_attr *attr; in main()
718 { (struct perf_event_attr *) (uintptr_t) 0xfffffacefffffeedULL, in main()
739 struct perf_event_attr *attr = attrs[i % ARRAY_SIZE(attrs)].ptr; in main()
Dperf_event_open_nonverbose.c66 TAIL_ALLOC_OBJECT_CONST_PTR(struct perf_event_attr, attr); in main()
72 struct perf_event_attr *attr; in main()
/external/strace/tests-mx32/
Dperf_event_open.c146 print_event_attr(struct perf_event_attr *attr_ptr, size_t size, in print_event_attr()
158 offsetof(struct perf_event_attr, config) + in print_event_attr()
164 struct perf_event_attr *attr; in print_event_attr()
677 struct perf_event_attr *ptr; in main()
680 ATTR_REC(sizeof(struct perf_event_attr)), in main()
695 TAIL_ALLOC_OBJECT_CONST_PTR(struct perf_event_attr, small_attr); in main()
698 struct perf_event_attr *attr; in main()
718 { (struct perf_event_attr *) (uintptr_t) 0xfffffacefffffeedULL, in main()
739 struct perf_event_attr *attr = attrs[i % ARRAY_SIZE(attrs)].ptr; in main()
Dperf_event_open_nonverbose.c66 TAIL_ALLOC_OBJECT_CONST_PTR(struct perf_event_attr, attr); in main()
72 struct perf_event_attr *attr; in main()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dsend_signal.c11 static void test_send_signal_common(struct perf_event_attr *attr, in test_send_signal_common()
146 struct perf_event_attr attr = { in test_send_signal_tracepoint()
176 struct perf_event_attr attr = { in test_send_signal_perf()
188 struct perf_event_attr attr = { in test_send_signal_nmi()
/external/linux-kselftest/tools/testing/selftests/powerpc/
Dutils.c194 static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid, in perf_event_open()
201 static void perf_event_attr_init(struct perf_event_attr *event_attr, in perf_event_attr_init()
208 event_attr->size = sizeof(struct perf_event_attr); in perf_event_attr_init()
221 struct perf_event_attr event_attr; in perf_event_open_counter()
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dperf-hwbreak.c37 static inline int sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, in sys_perf_event_open()
47 struct perf_event_attr attr; in breakpoint_test()
78 struct perf_event_attr attr; in runtestsingle()
156 struct perf_event_attr attr; in runtest_dar_outside()
/external/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()
321 struct perf_event_attr pe = { in child_thread()
322 .size = sizeof(struct perf_event_attr), in child_thread()
/external/bcc/src/python/bcc/
Dperf.py20 class perf_event_attr(ct.Structure): class in Perf
95 attr = Perf.perf_event_attr()
/external/strace/xlat/
Dperf_ioctl_cmds.h85 static_assert((PERF_EVENT_IOC_MODIFY_ATTRIBUTES) == (_IOW('$', 11, struct perf_event_attr *)), "PER…
88 # define PERF_EVENT_IOC_MODIFY_ATTRIBUTES _IOW('$', 11, struct perf_event_attr *)
/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()
130 struct perf_event_attr pe; in arch_perfCreate()
131 memset(&pe, 0, sizeof(struct perf_event_attr)); in arch_perfCreate()
132 pe.size = sizeof(struct perf_event_attr); in arch_perfCreate()

123