Linux Perf
thread_map.h File Reference
#include <sys/types.h>
#include <stdio.h>
#include <linux/refcount.h>
Include dependency graph for thread_map.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  thread_map_data
 
struct  thread_map
 

Functions

struct thread_mapthread_map__new_dummy (void)
 
struct thread_mapthread_map__new_by_pid (pid_t pid)
 
struct thread_mapthread_map__new_by_tid (pid_t tid)
 
struct thread_mapthread_map__new_by_uid (uid_t uid)
 
struct thread_mapthread_map__new_all_cpus (void)
 
struct thread_mapthread_map__new (pid_t pid, pid_t tid, uid_t uid)
 
struct thread_mapthread_map__new_event (struct thread_map_event *event)
 
struct thread_mapthread_map__get (struct thread_map *map)
 
void thread_map__put (struct thread_map *map)
 
struct thread_mapthread_map__new_str (const char *pid, const char *tid, uid_t uid, bool all_threads)
 
struct thread_mapthread_map__new_by_tid_str (const char *tid_str)
 
size_t thread_map__fprintf (struct thread_map *threads, FILE *fp)
 
static int thread_map__nr (struct thread_map *threads)
 
static pid_t thread_map__pid (struct thread_map *map, int thread)
 
static void thread_map__set_pid (struct thread_map *map, int thread, pid_t pid)
 
static char * thread_map__comm (struct thread_map *map, int thread)
 
void thread_map__read_comms (struct thread_map *threads)
 
bool thread_map__has (struct thread_map *threads, pid_t pid)
 
int thread_map__remove (struct thread_map *threads, int idx)
 

Function Documentation

◆ thread_map__comm()

static char* thread_map__comm ( struct thread_map map,
int  thread 
)
inlinestatic

Definition at line 57 of file thread_map.h.

Here is the call graph for this function:

◆ thread_map__fprintf()

size_t thread_map__fprintf ( struct thread_map threads,
FILE *  fp 
)

Definition at line 367 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__get()

struct thread_map* thread_map__get ( struct thread_map map)

Definition at line 354 of file thread_map.c.

◆ thread_map__has()

bool thread_map__has ( struct thread_map threads,
pid_t  pid 
)

Definition at line 457 of file thread_map.c.

◆ thread_map__new()

struct thread_map* thread_map__new ( pid_t  pid,
pid_t  tid,
uid_t  uid 
)

Definition at line 192 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_all_cpus()

struct thread_map* thread_map__new_all_cpus ( void  )

Definition at line 182 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_by_pid()

struct thread_map* thread_map__new_by_pid ( pid_t  pid)

Definition at line 55 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_by_tid()

struct thread_map* thread_map__new_by_tid ( pid_t  tid)

Definition at line 83 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_by_tid_str()

struct thread_map* thread_map__new_by_tid_str ( const char *  tid_str)

Definition at line 277 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_by_uid()

struct thread_map* thread_map__new_by_uid ( uid_t  uid)

Definition at line 187 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_dummy()

struct thread_map* thread_map__new_dummy ( void  )

Definition at line 265 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_event()

struct thread_map* thread_map__new_event ( struct thread_map_event event)

Definition at line 446 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__new_str()

struct thread_map* thread_map__new_str ( const char *  pid,
const char *  tid,
uid_t  uid,
bool  all_threads 
)

Definition at line 326 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__nr()

static int thread_map__nr ( struct thread_map threads)
inlinestatic

Definition at line 41 of file thread_map.h.

◆ thread_map__pid()

static pid_t thread_map__pid ( struct thread_map map,
int  thread 
)
inlinestatic

Definition at line 46 of file thread_map.h.

◆ thread_map__put()

void thread_map__put ( struct thread_map map)

Definition at line 361 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__read_comms()

void thread_map__read_comms ( struct thread_map threads)

Definition at line 423 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__remove()

int thread_map__remove ( struct thread_map threads,
int  idx 
)

Definition at line 469 of file thread_map.c.

Here is the call graph for this function:

◆ thread_map__set_pid()

static void thread_map__set_pid ( struct thread_map map,
int  thread,
pid_t  pid 
)
inlinestatic

Definition at line 52 of file thread_map.h.