12 #include <linux/kernel.h> 58 { 700, 100,
"malloc" },
60 { 900, 100,
"realloc" },
77 {
"perf",
perf_syms, ARRAY_SIZE(perf_syms) },
78 {
"bash",
bash_syms, ARRAY_SIZE(bash_syms) },
79 {
"libc",
libc_syms, ARRAY_SIZE(libc_syms) },
80 {
"[kernel]",
kernel_syms, ARRAY_SIZE(kernel_syms) },
88 if (machine == NULL) {
89 pr_debug(
"Not enough memory for machine setup\n");
107 .
cpumode = PERF_RECORD_MISC_USER,
141 STB_GLOBAL, STT_FUNC, fsym->
name);
156 pr_debug(
"Not enough memory for machine setup\n");
164 struct rb_root *
root;
165 struct rb_node *
node;
172 pr_info(
"----- %s --------\n", __func__);
173 node = rb_first(root);
180 pr_info(
"%2d: entry: %-8s [%-8s] %20s: period = %"PRIu64
"\n",
187 node = rb_next(node);
194 struct rb_root *
root;
195 struct rb_node *
node;
199 pr_info(
"----- %s --------\n", __func__);
200 node = rb_first(root);
207 pr_info(
"%2d: entry: %8s:%5d [%-8s] %20s: period = %"PRIu64
"/%"PRIu64
"\n",
215 node = rb_next(node);
struct rb_root * entries_in
static void dso__set_loaded(struct dso *dso)
void dso__put(struct dso *dso)
static struct fake_sym perf_syms[]
void symbols__insert(struct rb_root *symbols, struct symbol *sym)
struct dso * machine__findnew_dso(struct machine *machine, const char *filename)
struct machine * machines__find(struct machines *machines, pid_t pid)
struct symbol * symbol__new(u64 start, u64 len, u8 binding, u8 type, const char *name)
const char * thread__comm_str(const struct thread *thread)
#define pr_debug(fmt,...)
void print_hists_in(struct hists *hists)
static struct @26 fake_mmap_info[]
static struct fake_sym libc_syms[]
#define hists__has(__h, __f)
struct rb_node rb_node_in
static int thread__set_comm(struct thread *thread, const char *comm, u64 timestamp)
static struct fake_sym kernel_syms[]
void thread__put(struct thread *thread)
void print_hists_out(struct hists *hists)
static int sym(yyscan_t scanner, int type, int config)
static struct fake_sym bash_syms[]
static struct @25 fake_threads[]
struct machine * setup_fake_machine(struct machines *machines)
struct he_stat * stat_acc
struct rb_root entries_collapsed
void machine__delete_threads(struct machine *machine)
static struct @27 fake_symbols[]
struct thread * machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid)
int machine__process_mmap_event(struct machine *machine, union perf_event *event, struct perf_sample *sample)