File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
tools/testing/selftests/bpf/progs Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change 4
4
* Copyright 2020 Google LLC.
5
5
*/
6
6
7
+ #include "vmlinux.h"
7
8
#include <errno.h>
8
- #include <linux/bpf.h>
9
- #include <stdbool.h>
10
9
#include <bpf/bpf_helpers.h>
11
10
#include <bpf/bpf_tracing.h>
12
11
@@ -36,23 +35,6 @@ struct {
36
35
__type (value , struct dummy_storage );
37
36
} sk_storage_map SEC (".maps" );
38
37
39
- /* TODO Use vmlinux.h once BTF pruning for embedded types is fixed.
40
- */
41
- struct sock {} __attribute__((preserve_access_index ));
42
- struct sockaddr {} __attribute__((preserve_access_index ));
43
- struct socket {
44
- struct sock * sk ;
45
- } __attribute__((preserve_access_index ));
46
-
47
- struct inode {} __attribute__((preserve_access_index ));
48
- struct dentry {
49
- struct inode * d_inode ;
50
- } __attribute__((preserve_access_index ));
51
- struct file {
52
- struct inode * f_inode ;
53
- } __attribute__((preserve_access_index ));
54
-
55
-
56
38
SEC ("lsm/inode_unlink" )
57
39
int BPF_PROG (unlink_hook , struct inode * dir , struct dentry * victim )
58
40
{
You can’t perform that action at this time.
0 commit comments