Lines Matching refs:entries

63 	unsigned long entries[];	/* Variable-sized array of frames */
126 unsigned long entries = 0;
145 * If stack_bucket_number_order is not set, leave entries as 0 to rely
149 entries = 1UL << stack_bucket_number_order;
153 entries,
173 unsigned long entries;
186 entries = 1UL << stack_bucket_number_order;
190 entries = nr_free_buffer_pages();
191 entries = roundup_pow_of_two(entries);
194 entries >>= (scale - PAGE_SHIFT);
196 entries <<= (PAGE_SHIFT - scale);
199 if (entries < 1UL << STACK_BUCKET_NUMBER_ORDER_MIN)
200 entries = 1UL << STACK_BUCKET_NUMBER_ORDER_MIN;
201 if (entries > 1UL << STACK_BUCKET_NUMBER_ORDER_MAX)
202 entries = 1UL << STACK_BUCKET_NUMBER_ORDER_MAX;
204 pr_info("allocating hash table of %lu entries via kvcalloc\n", entries);
205 stack_table = kvcalloc(entries, sizeof(struct stack_record *), GFP_KERNEL);
212 stack_hash_mask = entries - 1;
260 depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc)
263 size_t required_size = struct_size(stack, entries, size);
308 memcpy(stack->entries, entries, flex_array_size(stack, entries, size));
320 static inline u32 hash_stack(unsigned long *entries, unsigned int size)
322 return jhash2((u32 *)entries,
323 array_size(size, sizeof(*entries)) / sizeof(u32),
344 unsigned long *entries, int size,
352 !stackdepot_memcmp(entries, found->entries, size))
358 depot_stack_handle_t __stack_depot_save(unsigned long *entries,
377 nr_entries = filter_irq_stacks(entries, nr_entries);
382 hash = hash_stack(entries, nr_entries);
390 found = find_stack(smp_load_acquire(bucket), entries, nr_entries, hash);
417 found = find_stack(*bucket, entries, nr_entries, hash);
420 depot_alloc_stack(entries, nr_entries, hash, &prealloc);
452 depot_stack_handle_t stack_depot_save(unsigned long *entries,
456 return __stack_depot_save(entries, nr_entries, alloc_flags, true);
461 unsigned long **entries)
473 *entries = NULL;
475 * Let KMSAN know *entries is initialized. This shall prevent false
478 kmsan_unpoison_memory(entries, sizeof(*entries));
493 *entries = stack->entries;
500 unsigned long *entries;
503 nr_entries = stack_depot_fetch(stack, &entries);
505 stack_trace_print(entries, nr_entries, 0);
512 unsigned long *entries;
515 nr_entries = stack_depot_fetch(handle, &entries);
516 return nr_entries ? stack_trace_snprint(buf, size, entries, nr_entries,