Linux Perf
hists_filter.c File Reference
#include "perf.h"
#include "util/debug.h"
#include "util/symbol.h"
#include "util/sort.h"
#include "util/evsel.h"
#include "util/event.h"
#include "util/evlist.h"
#include "util/machine.h"
#include "util/thread.h"
#include "util/parse-events.h"
#include "tests/tests.h"
#include "tests/hists_common.h"
#include <linux/kernel.h>
Include dependency graph for hists_filter.c:

Go to the source code of this file.

Classes

struct  sample
 

Functions

static int add_hist_entries (struct perf_evlist *evlist, struct machine *machine)
 
int test__hists_filter (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Variables

static struct sample fake_samples []
 

Function Documentation

◆ add_hist_entries()

static int add_hist_entries ( struct perf_evlist evlist,
struct machine machine 
)
static

Definition at line 49 of file hists_filter.c.

Here is the call graph for this function:

◆ test__hists_filter()

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

Definition at line 105 of file hists_filter.c.

Here is the call graph for this function:

Variable Documentation

◆ fake_samples

struct sample fake_samples[]
static
Initial value:
= {
{ .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, .socket = 0 },
{ .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, .socket = 0 },
{ .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, .socket = 0 },
{ .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, .socket = 0 },
{ .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, .socket = 1 },
{ .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 1 },
{ .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, .socket = 2 },
{ .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, .socket = 2 },
{ .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, .socket = 3 },
{ .pid = FAKE_PID_BASH, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 3 },
}
#define FAKE_IP_BASH_XMALLOC
Definition: hists_common.h:27
#define FAKE_IP_LIBC_MALLOC
Definition: hists_common.h:29
#define FAKE_IP_PERF_MAIN
Definition: hists_common.h:23
#define FAKE_IP_KERNEL_SCHEDULE
Definition: hists_common.h:32
#define FAKE_PID_PERF2
Definition: hists_common.h:9
#define FAKE_IP_PERF_CMD_RECORD
Definition: hists_common.h:25
#define FAKE_PID_PERF1
Definition: hists_common.h:8
#define FAKE_IP_BASH_MAIN
Definition: hists_common.h:26
#define FAKE_IP_KERNEL_PAGE_FAULT
Definition: hists_common.h:33
#define FAKE_PID_BASH
Definition: hists_common.h:10

Definition at line 26 of file hists_filter.c.