#include <stdio.h>
#include <stdbool.h>
#include <linux/refcount.h>
#include "perf.h"
#include "util/debug.h"
Go to the source code of this file.
|
struct cpu_map * | cpu_map__new (const char *cpu_list) |
|
struct cpu_map * | cpu_map__empty_new (int nr) |
|
struct cpu_map * | cpu_map__dummy_new (void) |
|
struct cpu_map * | cpu_map__new_data (struct cpu_map_data *data) |
|
struct cpu_map * | cpu_map__read (FILE *file) |
|
size_t | cpu_map__snprint (struct cpu_map *map, char *buf, size_t size) |
|
size_t | cpu_map__snprint_mask (struct cpu_map *map, char *buf, size_t size) |
|
size_t | cpu_map__fprintf (struct cpu_map *map, FILE *fp) |
|
int | cpu_map__get_socket_id (int cpu) |
|
int | cpu_map__get_socket (struct cpu_map *map, int idx, void *data) |
|
int | cpu_map__get_core_id (int cpu) |
|
int | cpu_map__get_core (struct cpu_map *map, int idx, void *data) |
|
int | cpu_map__build_socket_map (struct cpu_map *cpus, struct cpu_map **sockp) |
|
int | cpu_map__build_core_map (struct cpu_map *cpus, struct cpu_map **corep) |
|
struct cpu_map * | cpu_map__get (struct cpu_map *map) |
|
void | cpu_map__put (struct cpu_map *map) |
|
static int | cpu_map__socket (struct cpu_map *sock, int s) |
|
static int | cpu_map__id_to_socket (int id) |
|
static int | cpu_map__id_to_cpu (int id) |
|
static int | cpu_map__nr (const struct cpu_map *map) |
|
static bool | cpu_map__empty (const struct cpu_map *map) |
|
int | cpu__setup_cpunode_map (void) |
|
int | cpu__max_node (void) |
|
int | cpu__max_cpu (void) |
|
int | cpu__max_present_cpu (void) |
|
int | cpu__get_node (int cpu) |
|
int | cpu_map__build_map (struct cpu_map *cpus, struct cpu_map **res, int(*f)(struct cpu_map *map, int cpu, void *data), void *data) |
|
int | cpu_map__cpu (struct cpu_map *cpus, int idx) |
|
bool | cpu_map__has (struct cpu_map *cpus, int cpu) |
|
int | cpu_map__idx (struct cpu_map *cpus, int cpu) |
|
◆ cpu__get_node()
int cpu__get_node |
( |
int |
cpu | ) |
|
◆ cpu__max_cpu()
int cpu__max_cpu |
( |
void |
| ) |
|
◆ cpu__max_node()
int cpu__max_node |
( |
void |
| ) |
|
◆ cpu__max_present_cpu()
int cpu__max_present_cpu |
( |
void |
| ) |
|
◆ cpu__setup_cpunode_map()
int cpu__setup_cpunode_map |
( |
void |
| ) |
|
◆ cpu_map__build_core_map()
int cpu_map__build_core_map |
( |
struct cpu_map * |
cpus, |
|
|
struct cpu_map ** |
corep |
|
) |
| |
◆ cpu_map__build_map()
int cpu_map__build_map |
( |
struct cpu_map * |
cpus, |
|
|
struct cpu_map ** |
res, |
|
|
int(*)(struct cpu_map *map, int cpu, void *data) |
f, |
|
|
void * |
data |
|
) |
| |
◆ cpu_map__build_socket_map()
int cpu_map__build_socket_map |
( |
struct cpu_map * |
cpus, |
|
|
struct cpu_map ** |
sockp |
|
) |
| |
◆ cpu_map__cpu()
int cpu_map__cpu |
( |
struct cpu_map * |
cpus, |
|
|
int |
idx |
|
) |
| |
◆ cpu_map__dummy_new()
struct cpu_map* cpu_map__dummy_new |
( |
void |
| ) |
|
◆ cpu_map__empty()
static bool cpu_map__empty |
( |
const struct cpu_map * |
map | ) |
|
|
inlinestatic |
◆ cpu_map__empty_new()
struct cpu_map* cpu_map__empty_new |
( |
int |
nr | ) |
|
◆ cpu_map__fprintf()
size_t cpu_map__fprintf |
( |
struct cpu_map * |
map, |
|
|
FILE * |
fp |
|
) |
| |
◆ cpu_map__get()
◆ cpu_map__get_core()
int cpu_map__get_core |
( |
struct cpu_map * |
map, |
|
|
int |
idx, |
|
|
void * |
data |
|
) |
| |
◆ cpu_map__get_core_id()
int cpu_map__get_core_id |
( |
int |
cpu | ) |
|
◆ cpu_map__get_socket()
int cpu_map__get_socket |
( |
struct cpu_map * |
map, |
|
|
int |
idx, |
|
|
void * |
data |
|
) |
| |
◆ cpu_map__get_socket_id()
int cpu_map__get_socket_id |
( |
int |
cpu | ) |
|
◆ cpu_map__has()
bool cpu_map__has |
( |
struct cpu_map * |
cpus, |
|
|
int |
cpu |
|
) |
| |
◆ cpu_map__id_to_cpu()
static int cpu_map__id_to_cpu |
( |
int |
id | ) |
|
|
inlinestatic |
◆ cpu_map__id_to_socket()
static int cpu_map__id_to_socket |
( |
int |
id | ) |
|
|
inlinestatic |
◆ cpu_map__idx()
int cpu_map__idx |
( |
struct cpu_map * |
cpus, |
|
|
int |
cpu |
|
) |
| |
◆ cpu_map__new()
struct cpu_map* cpu_map__new |
( |
const char * |
cpu_list | ) |
|
◆ cpu_map__new_data()
◆ cpu_map__nr()
static int cpu_map__nr |
( |
const struct cpu_map * |
map | ) |
|
|
inlinestatic |
◆ cpu_map__put()
void cpu_map__put |
( |
struct cpu_map * |
map | ) |
|
◆ cpu_map__read()
struct cpu_map* cpu_map__read |
( |
FILE * |
file | ) |
|
◆ cpu_map__snprint()
size_t cpu_map__snprint |
( |
struct cpu_map * |
map, |
|
|
char * |
buf, |
|
|
size_t |
size |
|
) |
| |
◆ cpu_map__snprint_mask()
size_t cpu_map__snprint_mask |
( |
struct cpu_map * |
map, |
|
|
char * |
buf, |
|
|
size_t |
size |
|
) |
| |
◆ cpu_map__socket()
static int cpu_map__socket |
( |
struct cpu_map * |
sock, |
|
|
int |
s |
|
) |
| |
|
inlinestatic |