sysfs_path
hid_id = get_hid_id(sysfs_path);
const char *sysfs_path;
sysfs_path = argv[optind];
if (!sysfs_path) {
const char *sysfs_path;
sysfs_path = argv[optind];
if (!sysfs_path) {
hid_id = get_hid_id(sysfs_path);
static struct perf_cpu_map *read_sysfs_cpu_map(const char *sysfs_path)
if (sysfs__read_str(sysfs_path, &buf, &buf_len) < 0)
struct sysfs_path *sp;
sp = calloc(1, sizeof(struct sysfs_path));
struct sysfs_path *next;
struct sysfs_path *sp;
char *find_sysfs_path_by_id(struct sysfs_path *sp, int id)
int initialize_cpu_set_from_sysfs(cpu_set_t *cpu_set, char *sysfs_path, char *sysfs_file)
if (snprintf(path, 128, "%s/%s", sysfs_path, sysfs_file) > 128)
err(-1, "%s %s", sysfs_path, sysfs_file);
warn("read %s", sysfs_path);
warnx("%s: cpu str malformat %s\n", sysfs_path, cpu_effective_str);