Lines Matching refs:sysfs_name
20 #define E(t, n, s) { .tag = t, .name = n, .sysfs_name = s }
103 static bool perf_mem_event__supported(const char *mnt, char *sysfs_name) in perf_mem_event__supported() argument
108 scnprintf(path, PATH_MAX, "%s/devices/%s", mnt, sysfs_name); in perf_mem_event__supported()
124 char sysfs_name[100]; in perf_mem_events__init() local
134 scnprintf(sysfs_name, sizeof(sysfs_name), in perf_mem_events__init()
135 e->sysfs_name, "cpu"); in perf_mem_events__init()
136 e->supported = perf_mem_event__supported(mnt, sysfs_name); in perf_mem_events__init()
139 scnprintf(sysfs_name, sizeof(sysfs_name), in perf_mem_events__init()
140 e->sysfs_name, pmu->name); in perf_mem_events__init()
141 e->supported |= perf_mem_event__supported(mnt, sysfs_name); in perf_mem_events__init()
171 char sysfs_name[100]; in perf_mem_events__print_unsupport_hybrid() local
175 scnprintf(sysfs_name, sizeof(sysfs_name), e->sysfs_name, in perf_mem_events__print_unsupport_hybrid()
177 if (!perf_mem_event__supported(mnt, sysfs_name)) { in perf_mem_events__print_unsupport_hybrid()