Lines Matching defs:perf_device
9567 const char *perf_device = pinfo->device;
9569 if (strcmp(perf_device, "cpu") == 0 && perf_has_hybrid_devices()) {
9572 perf_device = "cpu_core";
9576 perf_device = "cpu_atom";
9584 perf_type = read_perf_type(perf_device);
9586 warnx("%s: perf/%s/%s: failed to read %s", __func__, perf_device, pinfo->event, "type");
9590 perf_config = read_perf_config(perf_device, pinfo->event);
9593 __func__, perf_device, pinfo->event, "config");
9598 perf_scale = read_perf_scale(perf_device, pinfo->event);
9605 __func__, perf_device, pinfo->event, cpu);
9615 perf_device, pinfo->event, cpu, pinfo->fd_perf_per_domain[next_domain]);
10276 struct perf_counter_info *make_perf_counter_info(const char *perf_device,
10287 errx(1, "%s: Failed to allocate %s/%s\n", __func__, perf_device, perf_event);
10289 strncpy(pinfo->device, perf_device, ARRAY_SIZE(pinfo->device) - 1);
10301 int add_perf_counter(const char *perf_device, const char *perf_event, const char *name_buffer, unsigned int width,
10309 warnx("ignoring thread counter perf/%s/%s", perf_device, perf_event);
10316 warnx("ignoring core counter perf/%s/%s", perf_device, perf_event);
10323 warnx("ignoring package counter perf/%s/%s", perf_device, perf_event);
10329 pinfo = make_perf_counter_info(perf_device, perf_event, name_buffer, width, scope, type, format);
10366 char perf_device[PERF_DEV_NAME_BYTES] = "";
10383 BUILD_BUG_ON(ARRAY_SIZE(perf_device) <= 31);
10385 if (sscanf(add_command, "perf/%31[^/]/%31[^,]", &perf_device[0], &perf_event[0]) == 2)
10457 if ((msr_num == 0) && (path == NULL) && (perf_device[0] == '\0' || perf_event[0] == '\0')) {
10462 /* Test for non-empty perf_device and perf_event */
10463 const bool is_perf_counter = perf_device[0] && perf_event[0];
10478 if (add_perf_counter(perf_device, perf_event, name_buffer, width, scope, type, format))