Lines Matching full:entries
65 unsigned long entries[1]; /* Variable-sized array of entries. */ member
104 static struct stack_record *depot_alloc_stack(unsigned long *entries, int size, in depot_alloc_stack() argument
107 int required_size = offsetof(struct stack_record, entries) + in depot_alloc_stack()
139 memcpy(stack->entries, entries, size * sizeof(unsigned long)); in depot_alloc_stack()
155 static inline u32 hash_stack(unsigned long *entries, unsigned int size) in hash_stack() argument
157 return jhash2((u32 *)entries, in hash_stack()
177 /* Find a stack that is equal to the one stored in entries in the hash */
179 unsigned long *entries, int size, in find_stack() argument
187 !stackdepot_memcmp(entries, found->entries, size)) in find_stack()
194 * stack_depot_fetch - Fetch stack entries from a depot
198 * @entries: Pointer to store the entries address
200 * Return: The number of trace entries for this depot.
203 unsigned long **entries) in stack_depot_fetch() argument
210 *entries = NULL; in stack_depot_fetch()
221 *entries = stack->entries; in stack_depot_fetch()
229 * @entries: Pointer to storage array
235 depot_stack_handle_t stack_depot_save(unsigned long *entries, in stack_depot_save() argument
249 hash = hash_stack(entries, nr_entries); in stack_depot_save()
257 found = find_stack(smp_load_acquire(bucket), entries, in stack_depot_save()
286 found = find_stack(*bucket, entries, nr_entries, hash); in stack_depot_save()
289 depot_alloc_stack(entries, nr_entries, in stack_depot_save()
329 unsigned int filter_irq_stacks(unsigned long *entries, in filter_irq_stacks() argument
335 if (in_irqentry_text(entries[i])) { in filter_irq_stacks()