Lines Matching full:static
27 static char const *input_name = "perf.data";
29 static int alloc_flag;
30 static int caller_flag;
32 static int alloc_lines = -1;
33 static int caller_lines = -1;
35 static bool raw_ip;
37 static char default_sort_order[] = "frag,hit,bytes";
39 static int *cpunode_map;
40 static int max_cpu_num;
55 static struct rb_root root_alloc_stat;
56 static struct rb_root root_alloc_sorted;
57 static struct rb_root root_caller_stat;
58 static struct rb_root root_caller_sorted;
60 static unsigned long total_requested, total_allocated;
61 static unsigned long nr_allocs, nr_cross_allocs;
65 static void init_cpunode_map(void)
88 static void setup_cpunode_map(void)
119 static void insert_alloc_stat(unsigned long call_site, unsigned long ptr,
159 static void insert_caller_stat(unsigned long call_site,
197 static void process_alloc_event(void *data,
230 static int ptr_cmp(struct alloc_stat *, struct alloc_stat *);
231 static int callsite_cmp(struct alloc_stat *, struct alloc_stat *);
233 static struct alloc_stat *search_alloc_stat(unsigned long ptr,
258 static void process_free_event(void *data,
284 static void process_raw_event(union perf_event *raw_event __used, void *data,
312 static int process_sample_event(union perf_event *event,
333 static struct perf_event_ops event_ops = {
339 static double fragmentation(unsigned long n_req, unsigned long n_alloc)
347 static void __print_result(struct rb_root *root, struct perf_session *session,
405 static void print_summary(void)
417 static void print_result(struct perf_session *session)
432 static LIST_HEAD(caller_sort);
433 static LIST_HEAD(alloc_sort);
435 static void sort_insert(struct rb_root *root, struct alloc_stat *data,
465 static void __sort_result(struct rb_root *root, struct rb_root *root_sorted,
482 static void sort_result(void)
488 static int __cmd_kmem(void)
513 static const char * const kmem_usage[] = {
518 static int ptr_cmp(struct alloc_stat *l, struct alloc_stat *r)
527 static struct sort_dimension ptr_sort_dimension = {
532 static int callsite_cmp(struct alloc_stat *l, struct alloc_stat *r)
541 static struct sort_dimension callsite_sort_dimension = {
546 static int hit_cmp(struct alloc_stat *l, struct alloc_stat *r)
555 static struct sort_dimension hit_sort_dimension = {
560 static int bytes_cmp(struct alloc_stat *l, struct alloc_stat *r)
569 static struct sort_dimension bytes_sort_dimension = {
574 static int frag_cmp(struct alloc_stat *l, struct alloc_stat *r)
588 static struct sort_dimension frag_sort_dimension = {
593 static int pingpong_cmp(struct alloc_stat *l, struct alloc_stat *r)
602 static struct sort_dimension pingpong_sort_dimension = {
607 static struct sort_dimension *avail_sorts[] = {
619 static int sort_dimension__add(const char *tok, struct list_head *list)
638 static int setup_sorting(struct list_head *sort_list, const char *arg)
660 static int parse_sort_opt(const struct option *opt __used,
674 static int parse_caller_opt(const struct option *opt __used,
681 static int parse_alloc_opt(const struct option *opt __used,
688 static int parse_line_opt(const struct option *opt __used,
706 static const struct option kmem_options[] = {
725 static
739 static int __cmd_record(int argc, const char **argv)