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

Go to the source code of this file.

Classes

struct  call_return
 
struct  call_return_processor
 

Enumerations

enum  { CALL_RETURN_NO_CALL = 1 << 0, CALL_RETURN_NO_RETURN = 1 << 1 }
 

Functions

int thread_stack__event (struct thread *thread, u32 flags, u64 from_ip, u64 to_ip, u16 insn_len, u64 trace_nr)
 
void thread_stack__set_trace_nr (struct thread *thread, u64 trace_nr)
 
void thread_stack__sample (struct thread *thread, struct ip_callchain *chain, size_t sz, u64 ip)
 
int thread_stack__flush (struct thread *thread)
 
void thread_stack__free (struct thread *thread)
 
size_t thread_stack__depth (struct thread *thread)
 
struct call_return_processorcall_return_processor__new (int(*process)(struct call_return *cr, void *data), void *data)
 
void call_return_processor__free (struct call_return_processor *crp)
 
int thread_stack__process (struct thread *thread, struct comm *comm, struct perf_sample *sample, struct addr_location *from_al, struct addr_location *to_al, u64 ref, struct call_return_processor *crp)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CALL_RETURN_NO_CALL 
CALL_RETURN_NO_RETURN 

Definition at line 39 of file thread-stack.h.

Function Documentation

◆ call_return_processor__free()

void call_return_processor__free ( struct call_return_processor crp)

Definition at line 325 of file thread-stack.c.

Here is the call graph for this function:

◆ call_return_processor__new()

struct call_return_processor* call_return_processor__new ( int(*)(struct call_return *cr, void *data)  process,
void *  data 
)

Definition at line 305 of file thread-stack.c.

Here is the call graph for this function:

◆ thread_stack__depth()

size_t thread_stack__depth ( struct thread thread)

Definition at line 621 of file thread-stack.c.

◆ thread_stack__event()

int thread_stack__event ( struct thread thread,
u32  flags,
u64  from_ip,
u64  to_ip,
u16  insn_len,
u64  trace_nr 
)

Definition at line 219 of file thread-stack.c.

Here is the call graph for this function:

◆ thread_stack__flush()

int thread_stack__flush ( struct thread thread)

Definition at line 211 of file thread-stack.c.

Here is the call graph for this function:

◆ thread_stack__free()

void thread_stack__free ( struct thread thread)

Definition at line 279 of file thread-stack.c.

Here is the call graph for this function:

◆ thread_stack__process()

int thread_stack__process ( struct thread thread,
struct comm comm,
struct perf_sample sample,
struct addr_location from_al,
struct addr_location to_al,
u64  ref,
struct call_return_processor crp 
)

Definition at line 535 of file thread-stack.c.

Here is the call graph for this function:

◆ thread_stack__sample()

void thread_stack__sample ( struct thread thread,
struct ip_callchain chain,
size_t  sz,
u64  ip 
)

Definition at line 288 of file thread-stack.c.

◆ thread_stack__set_trace_nr()

void thread_stack__set_trace_nr ( struct thread thread,
u64  trace_nr 
)

Definition at line 267 of file thread-stack.c.

Here is the call graph for this function: