10 #define NAME (const char *) "perf" 11 #define NAMEUL (unsigned long) NAME 33 refcount_read(&map->
refcnt) == 1);
48 refcount_read(&map->
refcnt) == 1);
75 refcount_read(&threads->
refcnt) == 1);
106 asprintf(&str,
"%d,%d", getpid(), getppid()) >= 0);
135 for (i = 0; i < threads->
nr; i++)
int thread_map__remove(struct thread_map *threads, int idx)
struct thread_map * thread_map__new_dummy(void)
struct thread_map_event_entry entries[]
struct thread_map * thread_map__new_str(const char *pid, const char *tid, uid_t uid, bool all_threads)
#define TEST_ASSERT_VAL(text, cond)
int test__thread_map_synthesize(struct test *test __maybe_unused, int subtest __maybe_unused)
int test__thread_map_remove(struct test *test __maybe_unused, int subtest __maybe_unused)
void thread_map__read_comms(struct thread_map *threads)
struct thread_map * thread_map__new_by_pid(pid_t pid)
static struct perf_tool tool
struct thread_map * thread_map__new_event(struct thread_map_event *event)
static int str(yyscan_t scanner, int token)
static char * thread_map__comm(struct thread_map *map, int thread)
struct thread_map_data map[]
size_t thread_map__fprintf(struct thread_map *threads, FILE *fp)
static struct thread_data threads[THREADS]
static pid_t thread_map__pid(struct thread_map *map, int thread)
int test__thread_map(struct test *test __maybe_unused, int subtest __maybe_unused)
void thread_map__put(struct thread_map *map)
struct thread_map_event thread_map
static int process_event(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused)
int perf_event__synthesize_thread_map2(struct perf_tool *tool, struct thread_map *threads, perf_event__handler_t process, struct machine *machine)