Lines Matching full:entries
66 unsigned long entries[]; /* Variable-sized array of entries. */ member
105 static struct stack_record *depot_alloc_stack(unsigned long *entries, int size, in depot_alloc_stack() argument
109 size_t required_size = struct_size(stack, entries, size); in depot_alloc_stack()
139 memcpy(stack->entries, entries, flex_array_size(stack, entries, size)); in depot_alloc_stack()
179 static inline u32 hash_stack(unsigned long *entries, unsigned int size) in hash_stack() argument
181 return jhash2((u32 *)entries, in hash_stack()
182 array_size(size, sizeof(*entries)) / sizeof(u32), in hash_stack()
201 /* Find a stack that is equal to the one stored in entries in the hash */
203 unsigned long *entries, int size, in find_stack() argument
211 !stackdepot_memcmp(entries, found->entries, size)) in find_stack()
218 * stack_depot_fetch - Fetch stack entries from a depot
222 * @entries: Pointer to store the entries address
224 * Return: The number of trace entries for this depot.
227 unsigned long **entries) in stack_depot_fetch() argument
234 *entries = NULL; in stack_depot_fetch()
245 *entries = stack->entries; in stack_depot_fetch()
253 * @entries: Pointer to storage array
259 depot_stack_handle_t stack_depot_save(unsigned long *entries, in stack_depot_save() argument
273 hash = hash_stack(entries, nr_entries); in stack_depot_save()
281 found = find_stack(smp_load_acquire(bucket), entries, in stack_depot_save()
310 found = find_stack(*bucket, entries, nr_entries, hash); in stack_depot_save()
313 depot_alloc_stack(entries, nr_entries, in stack_depot_save()
353 unsigned int filter_irq_stacks(unsigned long *entries, in filter_irq_stacks() argument
359 if (in_irqentry_text(entries[i])) { in filter_irq_stacks()