[PATCH 2/2] [GSoC] add bpf attr data for new bpf command BPF_STATS_ENABLED in linux 6.2
michaelkongboming at gmail.com
michaelkongboming at gmail.com
Sun Mar 26 04:28:04 UTC 2023
From: bigjr-mkkong <michaelkongboming at gmail.com>
---
Added attribute field for BPF_ENABLE_STATS
This is my micro-proj for GSoC 2023
tests/bpf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/bpf.c b/tests/bpf.c
index 76a7698c5..7fcbadd02 100644
--- a/tests/bpf.c
+++ b/tests/bpf.c
@@ -88,6 +88,7 @@ union bpf_attr_data {
BPF_ATTR_DATA_FIELD(BPF_LINK_CREATE);
BPF_ATTR_DATA_FIELD(BPF_LINK_UPDATE);
BPF_ATTR_DATA_FIELD(BPF_LINK_GET_FD_BY_ID);
+ BPF_ATTR_DATA_FIELD(BPF_ENABLE_STATS);
char char_data[256];
};
--
2.40.0
More information about the Strace-devel
mailing list