diff options
| author | David S. Miller <davem@davemloft.net> | 2017-09-29 08:17:06 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-09-29 08:17:06 +0300 |
| commit | fadad670a8abe89d08b875736557bd84063b07ec (patch) | |
| tree | 88ed327f8de91de1c0e668e34fb45453c31c3b78 /include/linux | |
| parent | cf5d74b85ef40c202c76d90959db4d850f301b95 (diff) | |
| parent | 3a8ad560a9674235d1dd2e174434f540924e249f (diff) | |
| download | linux-fadad670a8abe89d08b875736557bd84063b07ec.tar.xz | |
Merge branch 'bpf-extend-info'
Martin KaFai Lau says:
====================
bpf: Extend bpf_{prog,map}_info
This patch series adds more fields to bpf_prog_info and bpf_map_info.
Please see individual patch for details.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bpf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 2b672c50f160..252f4bc9eb25 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -56,6 +56,7 @@ struct bpf_map { struct work_struct work; atomic_t usercnt; struct bpf_map *inner_map_meta; + u8 name[BPF_OBJ_NAME_LEN]; }; /* function argument constraints */ @@ -187,6 +188,8 @@ struct bpf_prog_aux { struct bpf_map **used_maps; struct bpf_prog *prog; struct user_struct *user; + u64 load_time; /* ns since boottime */ + u8 name[BPF_OBJ_NAME_LEN]; union { struct work_struct work; struct rcu_head rcu; |
