Searched refs:hwmon_dir (Results 1 – 4 of 4) sorted by relevance
| /linux-6.15/tools/perf/util/ |
| H A D | hwmon_pmu.c | 345 struct perf_pmu *hwmon_pmu__new(struct list_head *pmus, int hwmon_dir, const char *sysfs_name, cons… in hwmon_pmu__new() argument 354 hwm->hwmon_dir_fd = hwmon_dir; in hwmon_pmu__new() 383 close(hwmon_dir); in hwmon_pmu__new() 712 int hwmon_dir, name_fd; in perf_pmus__read_hwmon_pmus() local 719 hwmon_dir = open(buf, O_DIRECTORY); in perf_pmus__read_hwmon_pmus() 720 if (hwmon_dir == -1) { in perf_pmus__read_hwmon_pmus() 725 name_fd = openat(hwmon_dir, "name", O_RDONLY); in perf_pmus__read_hwmon_pmus() 729 close(hwmon_dir); in perf_pmus__read_hwmon_pmus() 736 hwmon_pmu__new(pmus, hwmon_dir, class_hwmon_ent->d_name, line); in perf_pmus__read_hwmon_pmus()
|
| H A D | pmus.h | 32 struct perf_pmu *perf_pmus__add_test_hwmon_pmu(int hwmon_dir,
|
| H A D | hwmon_pmu.h | 145 struct perf_pmu *hwmon_pmu__new(struct list_head *pmus, int hwmon_dir,
|
| H A D | pmus.c | 758 struct perf_pmu *perf_pmus__add_test_hwmon_pmu(int hwmon_dir, in perf_pmus__add_test_hwmon_pmu() argument 762 return hwmon_pmu__new(&other_pmus, hwmon_dir, sysfs_name, name); in perf_pmus__add_test_hwmon_pmu()
|