Linux Perf
thread.h File Reference
#include <linux/refcount.h>
#include <linux/rbtree.h>
#include <linux/list.h>
#include <unistd.h>
#include <sys/types.h>
#include "symbol.h"
#include <strlist.h>
#include <intlist.h>
#include "rwsem.h"
Include dependency graph for thread.h:

Go to the source code of this file.

Classes

struct  thread
 

Macros

#define thread__zput(thread)   __thread__zput(&thread)
 

Functions

struct threadthread__new (pid_t pid, pid_t tid)
 
int thread__init_map_groups (struct thread *thread, struct machine *machine)
 
void thread__delete (struct thread *thread)
 
struct threadthread__get (struct thread *thread)
 
void thread__put (struct thread *thread)
 
static void __thread__zput (struct thread **thread)
 
static void thread__exited (struct thread *thread)
 
struct namespacesthread__namespaces (const struct thread *thread)
 
int thread__set_namespaces (struct thread *thread, u64 timestamp, struct namespaces_event *event)
 
int __thread__set_comm (struct thread *thread, const char *comm, u64 timestamp, bool exec)
 
static int thread__set_comm (struct thread *thread, const char *comm, u64 timestamp)
 
int thread__set_comm_from_proc (struct thread *thread)
 
int thread__comm_len (struct thread *thread)
 
struct commthread__comm (const struct thread *thread)
 
struct commthread__exec_comm (const struct thread *thread)
 
const char * thread__comm_str (const struct thread *thread)
 
int thread__insert_map (struct thread *thread, struct map *map)
 
int thread__fork (struct thread *thread, struct thread *parent, u64 timestamp)
 
size_t thread__fprintf (struct thread *thread, FILE *fp)
 
struct threadthread__main_thread (struct machine *machine, struct thread *thread)
 
struct mapthread__find_map (struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al)
 
struct symbolthread__find_symbol (struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al)
 
void thread__find_cpumode_addr_location (struct thread *thread, u64 addr, struct addr_location *al)
 
static void * thread__priv (struct thread *thread)
 
static void thread__set_priv (struct thread *thread, void *p)
 
static bool thread__is_filtered (struct thread *thread)
 

Macro Definition Documentation

◆ thread__zput

#define thread__zput (   thread)    __thread__zput(&thread)

Definition at line 64 of file thread.h.

Function Documentation

◆ __thread__set_comm()

int __thread__set_comm ( struct thread thread,
const char *  comm,
u64  timestamp,
bool  exec 
)

Definition at line 220 of file thread.c.

Here is the call graph for this function:

◆ __thread__zput()

static void __thread__zput ( struct thread **  thread)
inlinestatic

Definition at line 58 of file thread.h.

Here is the call graph for this function:

◆ thread__comm()

struct comm* thread__comm ( const struct thread thread)

Definition at line 174 of file thread.c.

◆ thread__comm_len()

int thread__comm_len ( struct thread thread)

Definition at line 270 of file thread.c.

Here is the call graph for this function:

◆ thread__comm_str()

const char* thread__comm_str ( const struct thread thread)

Definition at line 258 of file thread.c.

Here is the call graph for this function:

◆ thread__delete()

void thread__delete ( struct thread thread)

Definition at line 76 of file thread.c.

Here is the call graph for this function:

◆ thread__exec_comm()

struct comm* thread__exec_comm ( const struct thread thread)

Definition at line 182 of file thread.c.

◆ thread__exited()

static void thread__exited ( struct thread thread)
inlinestatic

Definition at line 66 of file thread.h.

Here is the call graph for this function:

◆ thread__find_cpumode_addr_location()

void thread__find_cpumode_addr_location ( struct thread thread,
u64  addr,
struct addr_location al 
)

Definition at line 368 of file thread.c.

Here is the call graph for this function:

◆ thread__find_map()

struct map* thread__find_map ( struct thread thread,
u8  cpumode,
u64  addr,
struct addr_location al 
)

Definition at line 1511 of file event.c.

Here is the call graph for this function:

◆ thread__find_symbol()

struct symbol* thread__find_symbol ( struct thread thread,
u8  cpumode,
u64  addr,
struct addr_location al 
)

Definition at line 1588 of file event.c.

Here is the call graph for this function:

◆ thread__fork()

int thread__fork ( struct thread thread,
struct thread parent,
u64  timestamp 
)

Definition at line 352 of file thread.c.

Here is the call graph for this function:

◆ thread__fprintf()

size_t thread__fprintf ( struct thread thread,
FILE *  fp 
)

Definition at line 282 of file thread.c.

Here is the call graph for this function:

◆ thread__get()

struct thread* thread__get ( struct thread thread)

Definition at line 112 of file thread.c.

◆ thread__init_map_groups()

int thread__init_map_groups ( struct thread thread,
struct machine machine 
)

Definition at line 19 of file thread.c.

Here is the call graph for this function:

◆ thread__insert_map()

int thread__insert_map ( struct thread thread,
struct map map 
)

Definition at line 288 of file thread.c.

Here is the call graph for this function:

◆ thread__is_filtered()

static bool thread__is_filtered ( struct thread thread)
inlinestatic

Definition at line 114 of file thread.h.

Here is the call graph for this function:

◆ thread__main_thread()

struct thread* thread__main_thread ( struct machine machine,
struct thread thread 
)

Definition at line 386 of file thread.c.

Here is the call graph for this function:

◆ thread__namespaces()

struct namespaces* thread__namespaces ( const struct thread thread)

Definition at line 131 of file thread.c.

◆ thread__new()

struct thread* thread__new ( pid_t  pid,
pid_t  tid 
)

Definition at line 36 of file thread.c.

Here is the call graph for this function:

◆ thread__priv()

static void* thread__priv ( struct thread thread)
inlinestatic

Definition at line 104 of file thread.h.

◆ thread__put()

void thread__put ( struct thread thread)

Definition at line 119 of file thread.c.

Here is the call graph for this function:

◆ thread__set_comm()

static int thread__set_comm ( struct thread thread,
const char *  comm,
u64  timestamp 
)
inlinestatic

Definition at line 77 of file thread.h.

Here is the call graph for this function:

◆ thread__set_comm_from_proc()

int thread__set_comm_from_proc ( struct thread thread)

Definition at line 231 of file thread.c.

Here is the call graph for this function:

◆ thread__set_namespaces()

int thread__set_namespaces ( struct thread thread,
u64  timestamp,
struct namespaces_event event 
)

Definition at line 163 of file thread.c.

Here is the call graph for this function:

◆ thread__set_priv()

static void thread__set_priv ( struct thread thread,
void *  p 
)
inlinestatic

Definition at line 109 of file thread.h.