diff options
| author | Andrey Konovalov <[email protected]> | 2023-11-20 18:47:14 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-10 16:51:46 -0800 |
| commit | 410b764f89f59cce858d94fc781b68c1f27a0ca9 (patch) | |
| tree | a8466fd4cd435189a7fb877eaa6ca2d596b3959a /tools/perf/scripts/python | |
| parent | 022012dcf44209074af97b6ae531a10c08736b31 (diff) | |
lib/stackdepot: add refcount for records
Add a reference counter for how many times a stack records has been
added to stack depot.
Add a new STACK_DEPOT_FLAG_GET flag to stack_depot_save_flags that
instructs the stack depot to increment the refcount.
Do not yet decrement the refcount; this is implemented in one of the
following patches.
Do not yet enable any users to use the flag to avoid overflowing the
refcount.
This is preparatory patch for implementing the eviction of stack records
from the stack depot.
Link: https://lkml.kernel.org/r/a3fc14a2359d019d2a008d4ff8b46a665371ffee.1700502145.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Evgenii Stepanov <[email protected]>
Cc: Marco Elver <[email protected]>
Cc: Oscar Salvador <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions