Lines Matching refs:nr_entries
418 static inline size_t depot_stack_record_size(struct stack_record *s, unsigned int nr_entries) in depot_stack_record_size() argument
420 const size_t used = flex_array_size(s, entries, nr_entries); in depot_stack_record_size()
430 depot_alloc_stack(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, v… in depot_alloc_stack() argument
438 if (WARN_ON_ONCE(!nr_entries)) in depot_alloc_stack()
442 if (nr_entries > CONFIG_STACKDEPOT_MAX_FRAMES) in depot_alloc_stack()
443 nr_entries = CONFIG_STACKDEPOT_MAX_FRAMES; in depot_alloc_stack()
453 record_size = depot_stack_record_size(stack, nr_entries); in depot_alloc_stack()
464 stack->size = nr_entries; in depot_alloc_stack()
466 memcpy(stack->entries, entries, flex_array_size(stack, entries, nr_entries)); in depot_alloc_stack()
634 unsigned int nr_entries, in stack_depot_save_flags() argument
659 nr_entries = filter_irq_stacks(entries, nr_entries); in stack_depot_save_flags()
661 if (unlikely(nr_entries == 0) || stack_depot_disabled) in stack_depot_save_flags()
664 hash = hash_stack(entries, nr_entries); in stack_depot_save_flags()
668 found = find_stack(bucket, entries, nr_entries, hash, depot_flags); in stack_depot_save_flags()
695 found = find_stack(bucket, entries, nr_entries, hash, depot_flags); in stack_depot_save_flags()
698 depot_alloc_stack(entries, nr_entries, hash, depot_flags, &prealloc); in stack_depot_save_flags()
736 unsigned int nr_entries, in stack_depot_save() argument
739 return stack_depot_save_flags(entries, nr_entries, alloc_flags, in stack_depot_save()
803 unsigned int nr_entries; in stack_depot_print() local
805 nr_entries = stack_depot_fetch(stack, &entries); in stack_depot_print()
806 if (nr_entries > 0) in stack_depot_print()
807 stack_trace_print(entries, nr_entries, 0); in stack_depot_print()
815 unsigned int nr_entries; in stack_depot_snprint() local
817 nr_entries = stack_depot_fetch(handle, &entries); in stack_depot_snprint()
818 return nr_entries ? stack_trace_snprint(buf, size, entries, nr_entries, in stack_depot_snprint()