#include "perf.h"
#include "util/debug.h"
#include "util/event.h"
#include "util/symbol.h"
#include "util/sort.h"
#include "util/evsel.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>
Go to the source code of this file.
|
static int | add_hist_entries (struct hists *hists, struct machine *machine) |
|
static void | del_hist_entries (struct hists *hists) |
|
static int | do_test (struct hists *hists, struct result *expected, size_t nr_expected, struct callchain_result *expected_callchain, size_t nr_callchain) |
|
static int | test1 (struct perf_evsel *evsel, struct machine *machine) |
|
static int | test2 (struct perf_evsel *evsel, struct machine *machine) |
|
static int | test3 (struct perf_evsel *evsel, struct machine *machine) |
|
static int | test4 (struct perf_evsel *evsel, struct machine *machine) |
|
int | test__hists_cumulate (struct test *test __maybe_unused, int subtest __maybe_unused) |
|
◆ CDSO
#define CDSO |
( |
|
cl | ) |
(cl->ms.map->dso->short_name) |
◆ COMM
◆ CPU
#define CPU |
( |
|
he | ) |
(he->cpu) |
◆ CSYM
◆ DEPTH
#define DEPTH |
( |
|
he | ) |
(he->callchain->max_depth) |
◆ DSO
#define DSO |
( |
|
he | ) |
(he->ms.map->dso->short_name) |
◆ PID
#define PID |
( |
|
he | ) |
(he->thread->tid) |
◆ SYM
◆ test_fn_t
◆ add_hist_entries()
static int add_hist_entries |
( |
struct hists * |
hists, |
|
|
struct machine * |
machine |
|
) |
| |
|
static |
◆ del_hist_entries()
static void del_hist_entries |
( |
struct hists * |
hists | ) |
|
|
static |
◆ do_test()
static int do_test |
( |
struct hists * |
hists, |
|
|
struct result * |
expected, |
|
|
size_t |
nr_expected, |
|
|
struct callchain_result * |
expected_callchain, |
|
|
size_t |
nr_callchain |
|
) |
| |
|
static |
◆ test1()
◆ test2()
◆ test3()
◆ test4()
◆ test__hists_cumulate()
int test__hists_cumulate |
( |
struct test *test |
__maybe_unused, |
|
|
int subtest |
__maybe_unused |
|
) |
| |
◆ fake_callchains
u64 fake_callchains[][10] |
|
static |
Initial value:= {
}
#define FAKE_IP_BASH_XMALLOC
#define FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN
#define FAKE_IP_LIBC_MALLOC
#define FAKE_IP_PERF_MAIN
#define FAKE_IP_KERNEL_SCHEDULE
#define FAKE_IP_PERF_CMD_RECORD
#define FAKE_IP_BASH_MAIN
#define FAKE_IP_PERF_RUN_COMMAND
#define FAKE_IP_KERNEL_PAGE_FAULT
#define FAKE_IP_LIBC_FREE
Definition at line 52 of file hists_cumulate.c.
◆ fake_samples
Initial value:= {
}
#define FAKE_IP_BASH_XMALLOC
#define FAKE_IP_LIBC_MALLOC
#define FAKE_IP_PERF_MAIN
#define FAKE_IP_KERNEL_SCHEDULE
#define FAKE_IP_PERF_CMD_RECORD
#define FAKE_IP_BASH_MAIN
#define FAKE_IP_KERNEL_PAGE_FAULT
#define FAKE_IP_LIBC_FREE
Definition at line 25 of file hists_cumulate.c.