mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
In the current implementation, the auto-analysis code for printing the stack captured in the tracefs buffer of the aa instance stops at the first encountered address that cannot be resolved into a function symbol. This is not always the desired behavior on all platforms; sometimes, there might be resolvable entries after unresolvable ones, and sometimes, the user might want to inspect the raw pointers for the unresolvable entries. Add a new option, --stack-format, with three values: - truncate: stop at first unresolvable entry. This is the current behavior, and is kept as the default. - skip: skip unresolvable entries, but do not stop on them. - full: print all entries, including unresolvable ones. To make this work, the "size" field of the stack entry is now also read and used as the maximum number of entries to print, capped at 64, since that is the fixed length of the "caller" field. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tomas Glozar <[email protected]>
10 lines
320 B
C
10 lines
320 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2023 Red Hat Inc, Daniel Bristot de Oliveira <[email protected]>
|
|
*/
|
|
|
|
int timerlat_aa_init(struct osnoise_tool *tool, int dump_task, enum stack_format stack_format);
|
|
void timerlat_aa_destroy(void);
|
|
|
|
void timerlat_auto_analysis(int irq_thresh, int thread_thresh);
|