Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open02.c149 struct perf_event_attr hw_event; in count_hardware_counters() local
154 memset(&hw_event, 0, sizeof(struct perf_event_attr)); in count_hardware_counters()
156 hw_event.type = PERF_TYPE_HARDWARE; in count_hardware_counters()
157 hw_event.size = sizeof(struct perf_event_attr); in count_hardware_counters()
158 hw_event.disabled = 1; in count_hardware_counters()
159 hw_event.config = PERF_COUNT_HW_INSTRUCTIONS; in count_hardware_counters()
160 hw_event.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | in count_hardware_counters()
164 fdarry[i] = perf_event_open(&hw_event, 0, -1, -1, 0); in count_hardware_counters()
231 struct perf_event_attr tsk_event, hw_event; in setup() local
263 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()
/external/OpenCSD/decoder/include/opencsd/stm/
Dtrc_cmp_cfg_stm.h97 m_cfg.hw_event = HwEvent_Unknown_Disabled; // default to not present / disabled. in STMConfig()
104 setHWTraceFeat(m_cfg.hw_event); in STMConfig()
110 setHWTraceFeat(p_cfg->hw_event);
123 m_cfg.hw_event = hw_feat; in setHWTraceFeat()
124 m_bHWTraceEn = (m_cfg.hw_event == HwEvent_Enabled); in setHWTraceFeat()
125 if(m_cfg.hw_event == HwEvent_UseRegisters) in setHWTraceFeat()
Dtrc_pkt_types_stm.h150 hw_event_feat_t hw_event; /**< status of HW event trace */ member
/external/tensorflow/tensorflow/core/platform/profile_utils/
Dandroid_armv7a_cpu_utils_helper.cc105 int AndroidArmV7ACpuUtilsHelper::OpenPerfEvent(perf_event_attr *const hw_event, in OpenPerfEvent() argument
110 syscall(__NR_perf_event_open, hw_event, pid, cpu, group_fd, flags); in OpenPerfEvent()
Dandroid_armv7a_cpu_utils_helper.h50 int OpenPerfEvent(perf_event_attr *const hw_event, const pid_t pid,
/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() argument
308 ret = tst_syscall(__NR_perf_event_open, hw_event, pid, cpu, in perf_event_open()
/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() argument
197 return syscall(__NR_perf_event_open, hw_event, pid, cpu, in perf_event_open()
/external/OpenCSD/decoder/tests/source/
Dc_api_pkt_print_test.c734 trace_config_stm.hw_event = HwEvent_Unknown_Disabled; in create_decoder_stm()