Lines Matching refs:pages
435 struct ftrace_profile_page *pages; member
595 pg = stat->pages = stat->start; in ftrace_profile_reset()
611 int pages; in ftrace_profile_pages_init() local
615 if (stat->pages) in ftrace_profile_pages_init()
618 stat->pages = (void *)get_zeroed_page(GFP_KERNEL); in ftrace_profile_pages_init()
619 if (!stat->pages) in ftrace_profile_pages_init()
635 pg = stat->start = stat->pages; in ftrace_profile_pages_init()
637 pages = DIV_ROUND_UP(functions, PROFILES_PER_PAGE); in ftrace_profile_pages_init()
639 for (i = 1; i < pages; i++) { in ftrace_profile_pages_init()
657 stat->pages = NULL; in ftrace_profile_pages_init()
762 if (stat->pages->index == PROFILES_PER_PAGE) { in ftrace_profile_alloc()
763 if (!stat->pages->next) in ftrace_profile_alloc()
765 stat->pages = stat->pages->next; in ftrace_profile_alloc()
768 rec = &stat->pages->records[stat->pages->index++]; in ftrace_profile_alloc()
3801 int pages; in ftrace_allocate_records() local
3808 pages = DIV_ROUND_UP(count, ENTRIES_PER_PAGE); in ftrace_allocate_records()
3809 order = fls(pages) - 1; in ftrace_allocate_records()
3834 static void ftrace_free_pages(struct ftrace_page *pages) in ftrace_free_pages() argument
3836 struct ftrace_page *pg = pages; in ftrace_free_pages()
3843 pages = pg->next; in ftrace_free_pages()
3845 pg = pages; in ftrace_free_pages()
7112 unsigned long pages; in ftrace_process_locs() local
7120 pages = DIV_ROUND_UP(count, ENTRIES_PER_PAGE); in ftrace_process_locs()
7245 pages -= remaining; in ftrace_process_locs()
7264 count, pages); in ftrace_process_locs()