Linux Perf
dwarf-unwind.c File Reference
#include <linux/compiler.h>
#include <linux/types.h>
#include <inttypes.h>
#include <unistd.h>
#include "tests.h"
#include "debug.h"
#include "machine.h"
#include "event.h"
#include "../util/unwind.h"
#include "perf_regs.h"
#include "map.h"
#include "thread.h"
#include "callchain.h"
#include <stdlib.h>
Include dependency graph for dwarf-unwind.c:

Go to the source code of this file.

Macros

#define MAX_STACK   8
 

Functions

static int mmap_handler (struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct machine *machine)
 
static int init_live_machine (struct machine *machine)
 
int test_dwarf_unwind__thread (struct thread *thread)
 
int test_dwarf_unwind__compare (void *p1, void *p2)
 
int test_dwarf_unwind__krava_3 (struct thread *thread)
 
int test_dwarf_unwind__krava_2 (struct thread *thread)
 
int test_dwarf_unwind__krava_1 (struct thread *thread)
 
static int unwind_entry (struct unwind_entry *entry, void *arg)
 
int test__dwarf_unwind (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Variables

static int global_unwind_retval = -INT_MAX
 

Macro Definition Documentation

◆ MAX_STACK

#define MAX_STACK   8

Definition at line 53 of file dwarf-unwind.c.

Function Documentation

◆ init_live_machine()

static int init_live_machine ( struct machine machine)
static

Definition at line 31 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ mmap_handler()

static int mmap_handler ( struct perf_tool *tool  __maybe_unused,
union perf_event event,
struct perf_sample sample,
struct machine machine 
)
static

Definition at line 23 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ test__dwarf_unwind()

int test__dwarf_unwind ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 172 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ test_dwarf_unwind__compare()

noinline int test_dwarf_unwind__compare ( void *  p1,
void *  p2 
)

Definition at line 124 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ test_dwarf_unwind__krava_1()

noinline int test_dwarf_unwind__krava_1 ( struct thread thread)

Definition at line 167 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ test_dwarf_unwind__krava_2()

noinline int test_dwarf_unwind__krava_2 ( struct thread thread)

Definition at line 162 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ test_dwarf_unwind__krava_3()

noinline int test_dwarf_unwind__krava_3 ( struct thread thread)

Definition at line 143 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ test_dwarf_unwind__thread()

noinline int test_dwarf_unwind__thread ( struct thread thread)

Definition at line 93 of file dwarf-unwind.c.

Here is the call graph for this function:

◆ unwind_entry()

static int unwind_entry ( struct unwind_entry entry,
void *  arg 
)
static

Definition at line 55 of file dwarf-unwind.c.

Variable Documentation

◆ global_unwind_retval

int global_unwind_retval = -INT_MAX
static

Definition at line 122 of file dwarf-unwind.c.