Lines Matching refs:imc_counters_config

44 static struct imc_counter_config imc_counters_config[MAX_IMCS][2];  variable
49 memset(&imc_counters_config[i][j].pe, 0, in membw_initialize_perf_event_attr()
51 imc_counters_config[i][j].pe.type = imc_counters_config[i][j].type; in membw_initialize_perf_event_attr()
52 imc_counters_config[i][j].pe.size = sizeof(struct perf_event_attr); in membw_initialize_perf_event_attr()
53 imc_counters_config[i][j].pe.disabled = 1; in membw_initialize_perf_event_attr()
54 imc_counters_config[i][j].pe.inherit = 1; in membw_initialize_perf_event_attr()
55 imc_counters_config[i][j].pe.exclude_guest = 0; in membw_initialize_perf_event_attr()
56 imc_counters_config[i][j].pe.config = in membw_initialize_perf_event_attr()
57 imc_counters_config[i][j].umask << 8 | in membw_initialize_perf_event_attr()
58 imc_counters_config[i][j].event; in membw_initialize_perf_event_attr()
59 imc_counters_config[i][j].pe.sample_type = PERF_SAMPLE_IDENTIFIER; in membw_initialize_perf_event_attr()
60 imc_counters_config[i][j].pe.read_format = in membw_initialize_perf_event_attr()
66 ioctl(imc_counters_config[i][j].fd, PERF_EVENT_IOC_RESET, 0); in membw_ioctl_perf_event_ioc_reset_enable()
67 ioctl(imc_counters_config[i][j].fd, PERF_EVENT_IOC_ENABLE, 0); in membw_ioctl_perf_event_ioc_reset_enable()
72 ioctl(imc_counters_config[i][j].fd, PERF_EVENT_IOC_DISABLE, 0); in membw_ioctl_perf_event_ioc_disable()
97 imc_counters_config[count][READ].event = in get_event_and_umask()
100 imc_counters_config[count][WRITE].event = in get_event_and_umask()
105 imc_counters_config[count][READ].umask = in get_event_and_umask()
108 imc_counters_config[count][WRITE].umask = in get_event_and_umask()
116 imc_counters_config[i][j].fd = in open_perf_event()
117 perf_event_open(&imc_counters_config[i][j].pe, -1, cpu_no, -1, in open_perf_event()
120 if (imc_counters_config[i][j].fd == -1) { in open_perf_event()
122 imc_counters_config[i][j].pe.config); in open_perf_event()
144 if (fscanf(fp, "%u", &imc_counters_config[count][READ].type) <= 0) { in read_from_imc_dir()
152 imc_counters_config[count][WRITE].type = in read_from_imc_dir()
153 imc_counters_config[count][READ].type; in read_from_imc_dir()
281 if (imc_counters_config[mc][READ].fd != -1) in perf_close_imc_mem_bw()
282 close(imc_counters_config[mc][READ].fd); in perf_close_imc_mem_bw()
283 if (imc_counters_config[mc][WRITE].fd != -1) in perf_close_imc_mem_bw()
284 close(imc_counters_config[mc][WRITE].fd); in perf_close_imc_mem_bw()
299 imc_counters_config[imc][READ].fd = -1; in perf_open_imc_mem_bw()
300 imc_counters_config[imc][WRITE].fd = -1; in perf_open_imc_mem_bw()
366 &imc_counters_config[imc][READ]; in get_mem_bw_imc()
368 &imc_counters_config[imc][WRITE]; in get_mem_bw_imc()