Lines Matching defs:perf_event
65 #include <linux/perf_event.h>
10277 const char *perf_event,
10287 errx(1, "%s: Failed to allocate %s/%s\n", __func__, perf_device, perf_event);
10290 strncpy(pinfo->event, perf_event, ARRAY_SIZE(pinfo->event) - 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);
10367 char perf_event[PERF_EVT_NAME_BYTES] = "";
10384 BUILD_BUG_ON(ARRAY_SIZE(perf_event) <= 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];
10468 snprintf(name_buffer, ARRAY_SIZE(name_buffer), "perf/%s", perf_event);
10478 if (add_perf_counter(perf_device, perf_event, name_buffer, width, scope, type, format))