11 #define TEMPL "/tmp/perf-test-XXXXXX" 22 perror(
"mkstemp failed");
97 pr_debug(
"CPU %d, core %d, socket %d\n", i,
102 for (i = 0; i < map->
nr; i++) {
130 pr_debug(
"failed to get system cpumap\n");
struct perf_evlist * evlist
struct perf_evlist * perf_evlist__new_default(void)
#define TEST_ASSERT_VAL(text, cond)
struct perf_data_file file
static int get_temp(char *path)
void perf_session__delete(struct perf_session *session)
void cpu_map__put(struct cpu_map *map)
#define pr_debug(fmt,...)
static struct perf_session * session
struct cpu_topology_map * cpu
bool cpu_map__has(struct cpu_map *cpus, int cpu)
static int check_cpu_topology(char *path, struct cpu_map *map)
struct perf_session * perf_session__new(struct perf_data *data, bool repipe, struct perf_tool *tool)
struct perf_header header
int cpu_map__get_core(struct cpu_map *map, int idx, void *data)
static int session_write_header(char *path)
struct cpu_map * cpu_map__new(const char *cpu_list)
int cpu_map__get_socket(struct cpu_map *map, int idx, void *data __maybe_unused)
int test__session_topology(struct test *test __maybe_unused, int subtest __maybe_unused)