Home
last modified time | relevance | path

Searched refs:stack_entries (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/kernel/kcsan/
Dreport.c44 unsigned long stack_entries[NUM_STACK_ENTRIES]; member
277 static int get_stack_skipnr(const unsigned long stack_entries[], int num_entries) in get_stack_skipnr() argument
284 len = scnprintf(buf, sizeof(buf), "%ps", (void *)stack_entries[skip]); in get_stack_skipnr()
315 replace_stack_entry(unsigned long stack_entries[], int num_entries, unsigned long ip, in replace_stack_entry() argument
328 unsigned long func = stack_entries[skip]; in replace_stack_entry()
335 *replaced = stack_entries[skip]; in replace_stack_entry()
336 stack_entries[skip] = ip; in replace_stack_entry()
344 return get_stack_skipnr(stack_entries, num_entries); in replace_stack_entry()
348 sanitize_stack_entries(unsigned long stack_entries[], int num_entries, unsigned long ip, in sanitize_stack_entries() argument
351 return ip ? replace_stack_entry(stack_entries, num_entries, ip, replaced) : in sanitize_stack_entries()
[all …]
/linux-6.1.9/mm/kfence/
Dreport.c49 static int get_stack_skipnr(const unsigned long stack_entries[], int num_entries, in get_stack_skipnr() argument
74 int len = scnprintf(buf, sizeof(buf), "%ps", (void *)stack_entries[skipnr]); in get_stack_skipnr()
120 int i = get_stack_skipnr(track->stack_entries, track->num_stack_entries, NULL); in kfence_print_stack()
124 seq_con_printf(seq, " %pS\n", (void *)track->stack_entries[i]); in kfence_print_stack()
189 unsigned long stack_entries[KFENCE_STACK_DEPTH] = { 0 }; in kfence_report_error() local
195 num_stack_entries = stack_trace_save_regs(regs, stack_entries, KFENCE_STACK_DEPTH, 0); in kfence_report_error()
197 num_stack_entries = stack_trace_save(stack_entries, KFENCE_STACK_DEPTH, 1); in kfence_report_error()
198 skipnr = get_stack_skipnr(stack_entries, num_stack_entries, &type); in kfence_report_error()
225 (void *)stack_entries[skipnr]); in kfence_report_error()
234 (void *)stack_entries[skipnr]); in kfence_report_error()
[all …]
Dcore.c195 static u32 get_alloc_stack_hash(unsigned long *stack_entries, size_t num_entries) in get_alloc_stack_hash() argument
198 num_entries = filter_irq_stacks(stack_entries, num_entries); in get_alloc_stack_hash()
199 return jhash(stack_entries, num_entries * sizeof(stack_entries[0]), stack_hash_seed); in get_alloc_stack_hash()
271 unsigned long *stack_entries, size_t num_stack_entries) in metadata_update_state() argument
278 if (stack_entries) { in metadata_update_state()
279 memcpy(track->stack_entries, stack_entries, in metadata_update_state()
280 num_stack_entries * sizeof(stack_entries[0])); in metadata_update_state()
286 num_stack_entries = stack_trace_save(track->stack_entries, KFENCE_STACK_DEPTH, 1); in metadata_update_state()
356 unsigned long *stack_entries, size_t num_stack_entries, in kfence_guarded_alloc() argument
419 metadata_update_state(meta, KFENCE_OBJECT_ALLOCATED, stack_entries, num_stack_entries); in kfence_guarded_alloc()
[all …]
Dkfence.h42 unsigned long stack_entries[KFENCE_STACK_DEPTH]; member
/linux-6.1.9/mm/kmsan/
Dreport.c33 static int get_stack_skipnr(const unsigned long stack_entries[], in get_stack_skipnr() argument
41 (void *)stack_entries[skip]); in get_stack_skipnr()
152 unsigned long stack_entries[KMSAN_STACK_DEPTH]; in kmsan_report() local
185 stack_trace_save(stack_entries, KMSAN_STACK_DEPTH, 1); in kmsan_report()
186 skipnr = get_stack_skipnr(stack_entries, num_stack_entries); in kmsan_report()
189 (void *)stack_entries[skipnr]); in kmsan_report()
190 stack_trace_print(stack_entries + skipnr, num_stack_entries - skipnr, in kmsan_report()
/linux-6.1.9/kernel/dma/
Ddebug.c80 unsigned long stack_entries[DMA_DEBUG_STACKTRACE_ENTRIES]; member
171 stack_trace_print(entry->stack_entries, entry->stack_len, 0); in dump_entry_trace()
644 entry->stack_len = stack_trace_save(entry->stack_entries, in dma_entry_alloc()
645 ARRAY_SIZE(entry->stack_entries), in dma_entry_alloc()
/linux-6.1.9/drivers/md/
Ddm-bufio.c162 unsigned long stack_entries[MAX_STACK]; member
257 b->stack_len = stack_trace_save(b->stack_entries, MAX_STACK, 2); in buffer_record_stack()
1614 stack_trace_print(b->stack_entries, b->stack_len, 1); in drop_buffers()
/linux-6.1.9/drivers/gpu/drm/display/
Ddrm_dp_mst_topology.c1533 ulong stack_entries[STACK_DEPTH]; in __topology_ref_save() local
1537 n = stack_trace_save(stack_entries, ARRAY_SIZE(stack_entries), 1); in __topology_ref_save()
1538 backtrace = stack_depot_save(stack_entries, n, GFP_KERNEL); in __topology_ref_save()