summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorAbhishek Bapat <abhishekbapat@google.com>2026-11-04 19:03:39 +0000
committerAndrew Morton <akpm@linux-foundation.org>2026-11-11 21:56:59 -0800
commit1dee882e8c4e27b71b00536a58089064dad8e79d (patch)
tree3927d0340c5c38655fcd48be50bd938f33b196c9 /include/uapi/linux
parent261f3b9c83ab8991615c5fbe5731a9b7589b198f (diff)
downloadlinux-next-1dee882e8c4e27b71b00536a58089064dad8e79d.tar.gz
linux-next-1dee882e8c4e27b71b00536a58089064dad8e79d.zip
alloc_tag: extend allocinfo_filter to support tracing queries
Extend the allocinfo filtering mechanism to allow users to filter tags based on their trace state. Link: https://lore.kernel.org/1cb54b7e6ffe2e7a0890815c3072d8a3819b48d9.1793818636.git.abhishekbapat@google.com Signed-off-by: Abhishek Bapat <abhishekbapat@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Suren Baghdasaryan <surenb@google.com> Acked-by: Hao Ge <hao.ge@linux.dev> Tested-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/alloc_tag.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/uapi/linux/alloc_tag.h b/include/uapi/linux/alloc_tag.h
index 2fc843bb06bc..ca0779051cf4 100644
--- a/include/uapi/linux/alloc_tag.h
+++ b/include/uapi/linux/alloc_tag.h
@@ -38,7 +38,8 @@ struct allocinfo_counter {
__u64 bytes;
__u64 calls;
__u8 accurate;
- __u8 pad[7];
+ __u8 trace_on;
+ __u8 pad[6];
} __attribute__((aligned(8)));
struct allocinfo_tag_data {
@@ -54,7 +55,8 @@ enum {
ALLOCINFO_FILTER_INACCURATE,
ALLOCINFO_FILTER_MIN_SIZE,
ALLOCINFO_FILTER_MAX_SIZE,
- __ALLOCINFO_FILTER_LAST = ALLOCINFO_FILTER_MAX_SIZE
+ ALLOCINFO_FILTER_TRACE_ON,
+ __ALLOCINFO_FILTER_LAST = ALLOCINFO_FILTER_TRACE_ON
};
#define ALLOCINFO_FILTER_MASK_MODNAME (1 << ALLOCINFO_FILTER_MODNAME)
@@ -64,11 +66,13 @@ enum {
#define ALLOCINFO_FILTER_MASK_INACCURATE (1 << ALLOCINFO_FILTER_INACCURATE)
#define ALLOCINFO_FILTER_MASK_MIN_SIZE (1 << ALLOCINFO_FILTER_MIN_SIZE)
#define ALLOCINFO_FILTER_MASK_MAX_SIZE (1 << ALLOCINFO_FILTER_MAX_SIZE)
+#define ALLOCINFO_FILTER_MASK_TRACE_ON (1 << ALLOCINFO_FILTER_TRACE_ON)
#define ALLOCINFO_FILTER_MASKS \
((1 << (__ALLOCINFO_FILTER_LAST + 1)) - 1)
#define ALLOCINFO_FILTER_FLAG_INACCURATE (1ULL << 0)
+#define ALLOCINFO_FILTER_FLAG_TRACE_ON (1ULL << 1)
struct allocinfo_filter {
__u64 mask; /* bitmask of the filter fields used */