Linux Perf
hists_common.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FAKE_PID_PERF1   100
 
#define FAKE_PID_PERF2   200
 
#define FAKE_PID_BASH   300
 
#define FAKE_MAP_PERF   0x400000
 
#define FAKE_MAP_BASH   0x400000
 
#define FAKE_MAP_LIBC   0x500000
 
#define FAKE_MAP_KERNEL   0xf00000
 
#define FAKE_MAP_LENGTH   0x100000
 
#define FAKE_SYM_OFFSET1   700
 
#define FAKE_SYM_OFFSET2   800
 
#define FAKE_SYM_OFFSET3   900
 
#define FAKE_SYM_LENGTH   100
 
#define FAKE_IP_PERF_MAIN   FAKE_MAP_PERF + FAKE_SYM_OFFSET1
 
#define FAKE_IP_PERF_RUN_COMMAND   FAKE_MAP_PERF + FAKE_SYM_OFFSET2
 
#define FAKE_IP_PERF_CMD_RECORD   FAKE_MAP_PERF + FAKE_SYM_OFFSET3
 
#define FAKE_IP_BASH_MAIN   FAKE_MAP_BASH + FAKE_SYM_OFFSET1
 
#define FAKE_IP_BASH_XMALLOC   FAKE_MAP_BASH + FAKE_SYM_OFFSET2
 
#define FAKE_IP_BASH_XFREE   FAKE_MAP_BASH + FAKE_SYM_OFFSET3
 
#define FAKE_IP_LIBC_MALLOC   FAKE_MAP_LIBC + FAKE_SYM_OFFSET1
 
#define FAKE_IP_LIBC_FREE   FAKE_MAP_LIBC + FAKE_SYM_OFFSET2
 
#define FAKE_IP_LIBC_REALLOC   FAKE_MAP_LIBC + FAKE_SYM_OFFSET3
 
#define FAKE_IP_KERNEL_SCHEDULE   FAKE_MAP_KERNEL + FAKE_SYM_OFFSET1
 
#define FAKE_IP_KERNEL_PAGE_FAULT   FAKE_MAP_KERNEL + FAKE_SYM_OFFSET2
 
#define FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN   FAKE_MAP_KERNEL + FAKE_SYM_OFFSET3
 

Functions

struct machinesetup_fake_machine (struct machines *machines)
 
void print_hists_in (struct hists *hists)
 
void print_hists_out (struct hists *hists)
 

Macro Definition Documentation

◆ FAKE_IP_BASH_MAIN

#define FAKE_IP_BASH_MAIN   FAKE_MAP_BASH + FAKE_SYM_OFFSET1

Definition at line 26 of file hists_common.h.

◆ FAKE_IP_BASH_XFREE

#define FAKE_IP_BASH_XFREE   FAKE_MAP_BASH + FAKE_SYM_OFFSET3

Definition at line 28 of file hists_common.h.

◆ FAKE_IP_BASH_XMALLOC

#define FAKE_IP_BASH_XMALLOC   FAKE_MAP_BASH + FAKE_SYM_OFFSET2

Definition at line 27 of file hists_common.h.

◆ FAKE_IP_KERNEL_PAGE_FAULT

#define FAKE_IP_KERNEL_PAGE_FAULT   FAKE_MAP_KERNEL + FAKE_SYM_OFFSET2

Definition at line 33 of file hists_common.h.

◆ FAKE_IP_KERNEL_SCHEDULE

#define FAKE_IP_KERNEL_SCHEDULE   FAKE_MAP_KERNEL + FAKE_SYM_OFFSET1

Definition at line 32 of file hists_common.h.

◆ FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN

#define FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN   FAKE_MAP_KERNEL + FAKE_SYM_OFFSET3

Definition at line 34 of file hists_common.h.

◆ FAKE_IP_LIBC_FREE

#define FAKE_IP_LIBC_FREE   FAKE_MAP_LIBC + FAKE_SYM_OFFSET2

Definition at line 30 of file hists_common.h.

◆ FAKE_IP_LIBC_MALLOC

#define FAKE_IP_LIBC_MALLOC   FAKE_MAP_LIBC + FAKE_SYM_OFFSET1

Definition at line 29 of file hists_common.h.

◆ FAKE_IP_LIBC_REALLOC

#define FAKE_IP_LIBC_REALLOC   FAKE_MAP_LIBC + FAKE_SYM_OFFSET3

Definition at line 31 of file hists_common.h.

◆ FAKE_IP_PERF_CMD_RECORD

#define FAKE_IP_PERF_CMD_RECORD   FAKE_MAP_PERF + FAKE_SYM_OFFSET3

Definition at line 25 of file hists_common.h.

◆ FAKE_IP_PERF_MAIN

#define FAKE_IP_PERF_MAIN   FAKE_MAP_PERF + FAKE_SYM_OFFSET1

Definition at line 23 of file hists_common.h.

◆ FAKE_IP_PERF_RUN_COMMAND

#define FAKE_IP_PERF_RUN_COMMAND   FAKE_MAP_PERF + FAKE_SYM_OFFSET2

Definition at line 24 of file hists_common.h.

◆ FAKE_MAP_BASH

#define FAKE_MAP_BASH   0x400000

Definition at line 13 of file hists_common.h.

◆ FAKE_MAP_KERNEL

#define FAKE_MAP_KERNEL   0xf00000

Definition at line 15 of file hists_common.h.

◆ FAKE_MAP_LENGTH

#define FAKE_MAP_LENGTH   0x100000

Definition at line 16 of file hists_common.h.

◆ FAKE_MAP_LIBC

#define FAKE_MAP_LIBC   0x500000

Definition at line 14 of file hists_common.h.

◆ FAKE_MAP_PERF

#define FAKE_MAP_PERF   0x400000

Definition at line 12 of file hists_common.h.

◆ FAKE_PID_BASH

#define FAKE_PID_BASH   300

Definition at line 10 of file hists_common.h.

◆ FAKE_PID_PERF1

#define FAKE_PID_PERF1   100

Definition at line 8 of file hists_common.h.

◆ FAKE_PID_PERF2

#define FAKE_PID_PERF2   200

Definition at line 9 of file hists_common.h.

◆ FAKE_SYM_LENGTH

#define FAKE_SYM_LENGTH   100

Definition at line 21 of file hists_common.h.

◆ FAKE_SYM_OFFSET1

#define FAKE_SYM_OFFSET1   700

Definition at line 18 of file hists_common.h.

◆ FAKE_SYM_OFFSET2

#define FAKE_SYM_OFFSET2   800

Definition at line 19 of file hists_common.h.

◆ FAKE_SYM_OFFSET3

#define FAKE_SYM_OFFSET3   900

Definition at line 20 of file hists_common.h.

Function Documentation

◆ print_hists_in()

void print_hists_in ( struct hists hists)

Definition at line 161 of file hists_common.c.

Here is the call graph for this function:

◆ print_hists_out()

void print_hists_out ( struct hists hists)

Definition at line 191 of file hists_common.c.

Here is the call graph for this function:

◆ setup_fake_machine()

struct machine* setup_fake_machine ( struct machines machines)

Definition at line 83 of file hists_common.c.

Here is the call graph for this function: