diff options
author | Andrey Konovalov <[email protected]> | 2023-02-10 22:16:03 +0100 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-02-16 20:43:51 -0800 |
commit | 36aa1e6779c3c6f8e0d4552544214f5cffe3c287 (patch) | |
tree | 1639d4bb581f0baab0ebed256c8e2af3a0fa6c5e /scripts/gdb | |
parent | d11a5621f3252120dfc7cef7600a90bd8e605caf (diff) |
lib/stacktrace, kasan, kmsan: rework extra_bits interface
The current implementation of the extra_bits interface is confusing:
passing extra_bits to __stack_depot_save makes it seem that the extra
bits are somehow stored in stack depot. In reality, they are only
embedded into a stack depot handle and are not used within stack depot.
Drop the extra_bits argument from __stack_depot_save and instead provide
a new stack_depot_set_extra_bits function (similar to the exsiting
stack_depot_get_extra_bits) that saves extra bits into a stack depot
handle.
Update the callers of __stack_depot_save to use the new interace.
This change also fixes a minor issue in the old code: __stack_depot_save
does not return NULL if saving stack trace fails and extra_bits is used.
Link: https://lkml.kernel.org/r/317123b5c05e2f82854fc55d8b285e0869d3cb77.1676063693.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions