Linux Perf
mmap-thread-lookup.c File Reference
#include <inttypes.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include "debug.h"
#include "tests.h"
#include "machine.h"
#include "thread_map.h"
#include "symbol.h"
#include "thread.h"
#include "util.h"
Include dependency graph for mmap-thread-lookup.c:

Go to the source code of this file.

Classes

struct  thread_data
 

Macros

#define THREADS   4
 

Typedefs

typedef int(* synth_cb) (struct machine *machine)
 

Functions

static int thread_init (struct thread_data *td)
 
static void * thread_fn (void *arg)
 
static int thread_create (int i)
 
static int threads_create (void)
 
static int threads_destroy (void)
 
static int synth_all (struct machine *machine)
 
static int synth_process (struct machine *machine)
 
static int mmap_events (synth_cb synth)
 
int test__mmap_thread_lookup (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Variables

static int go_away
 
static struct thread_data threads [THREADS]
 

Macro Definition Documentation

◆ THREADS

#define THREADS   4

Definition at line 18 of file mmap-thread-lookup.c.

Typedef Documentation

◆ synth_cb

typedef int(* synth_cb) (struct machine *machine)

Definition at line 129 of file mmap-thread-lookup.c.

Function Documentation

◆ mmap_events()

static int mmap_events ( synth_cb  synth)
static

Definition at line 153 of file mmap-thread-lookup.c.

Here is the call graph for this function:

◆ synth_all()

static int synth_all ( struct machine machine)
static

Definition at line 131 of file mmap-thread-lookup.c.

Here is the call graph for this function:

◆ synth_process()

static int synth_process ( struct machine machine)
static

Definition at line 138 of file mmap-thread-lookup.c.

Here is the call graph for this function:

◆ test__mmap_thread_lookup()

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

Definition at line 224 of file mmap-thread-lookup.c.

Here is the call graph for this function:

◆ thread_create()

static int thread_create ( int  i)
static

Definition at line 76 of file mmap-thread-lookup.c.

Here is the call graph for this function:

◆ thread_fn()

static void* thread_fn ( void *  arg)
static

Definition at line 51 of file mmap-thread-lookup.c.

Here is the call graph for this function:

◆ thread_init()

static int thread_init ( struct thread_data td)
static

Definition at line 31 of file mmap-thread-lookup.c.

◆ threads_create()

static int threads_create ( void  )
static

Definition at line 96 of file mmap-thread-lookup.c.

Here is the call graph for this function:

◆ threads_destroy()

static int threads_destroy ( void  )
static

Definition at line 113 of file mmap-thread-lookup.c.

Variable Documentation

◆ go_away

int go_away
static

Definition at line 20 of file mmap-thread-lookup.c.

◆ threads

struct thread_data threads[THREADS]
static

Definition at line 29 of file mmap-thread-lookup.c.