• Home
  • Raw
  • Download

Lines Matching refs:t

583 static void print_track(const char *s, struct track *t, unsigned long pr_time)  in print_track()  argument
585 if (!t->addr) in print_track()
589 s, (void *)t->addr, pr_time - t->when, t->cpu, t->pid); in print_track()
594 if (t->addrs[i]) in print_track()
595 pr_err("\t%pS\n", (void *)t->addrs[i]); in print_track()
1854 void *t; in get_partial_node() local
1859 t = acquire_slab(s, n, page, object == NULL, &objects); in get_partial_node()
1860 if (!t) in get_partial_node()
1867 object = t; in get_partial_node()
3977 struct page *t; in __kmem_cache_shrink() local
3997 list_for_each_entry_safe(page, t, &n->partial, slab_list) { in __kmem_cache_shrink()
4023 list_for_each_entry_safe(page, t, &discard, slab_list) in __kmem_cache_shrink()
4493 static void free_loc_track(struct loc_track *t) in free_loc_track() argument
4495 if (t->max) in free_loc_track()
4496 free_pages((unsigned long)t->loc, in free_loc_track()
4497 get_order(sizeof(struct location) * t->max)); in free_loc_track()
4500 static int alloc_loc_track(struct loc_track *t, unsigned long max, gfp_t flags) in alloc_loc_track() argument
4511 if (t->count) { in alloc_loc_track()
4512 memcpy(l, t->loc, sizeof(struct location) * t->count); in alloc_loc_track()
4513 free_loc_track(t); in alloc_loc_track()
4515 t->max = max; in alloc_loc_track()
4516 t->loc = l; in alloc_loc_track()
4520 static int add_location(struct loc_track *t, struct kmem_cache *s, in add_location() argument
4529 end = t->count; in add_location()
4541 caddr = t->loc[pos].addr; in add_location()
4544 l = &t->loc[pos]; in add_location()
4574 if (t->count >= t->max && !alloc_loc_track(t, 2 * t->max, GFP_ATOMIC)) in add_location()
4577 l = t->loc + pos; in add_location()
4578 if (pos < t->count) in add_location()
4580 (t->count - pos) * sizeof(struct location)); in add_location()
4581 t->count++; in add_location()
4596 static void process_slab(struct loc_track *t, struct kmem_cache *s, in process_slab() argument
4608 add_location(t, s, get_track(s, p, alloc)); in process_slab()
4616 struct loc_track t = { 0, 0, NULL }; in list_locations() local
4621 if (!map || !alloc_loc_track(&t, PAGE_SIZE / sizeof(struct location), in list_locations()
4638 process_slab(&t, s, page, alloc, map); in list_locations()
4640 process_slab(&t, s, page, alloc, map); in list_locations()
4644 for (i = 0; i < t.count; i++) { in list_locations()
4645 struct location *l = &t.loc[i]; in list_locations()
4688 free_loc_track(&t); in list_locations()
4690 if (!t.count) in list_locations()