[RFC,bpf,v3,4/5] tools: bpf: sync bpf uapi header

Message ID 20180514115118.8149-4-sandipan@linux.vnet.ibm.com
State Not Applicable
Headers show
  • [RFC,bpf,v3,1/5] bpf: allow 64-bit offsets for bpf function calls
Related show

Commit Message

Sandipan Das May 14, 2018, 11:51 a.m.
Syncing the bpf.h uapi header with tools so that struct
bpf_prog_info has the new fields for storing the kernel
symbol addresses for the JITed functions in a program.

Signed-off-by: Sandipan Das <sandipan@linux.vnet.ibm.com>
 tools/include/uapi/linux/bpf.h | 2 ++
 1 file changed, 2 insertions(+)


diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 83a95ae388dd..98857dc3469a 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -2107,6 +2107,8 @@  struct bpf_prog_info {
 	__u32 xlated_prog_len;
 	__aligned_u64 jited_prog_insns;
 	__aligned_u64 xlated_prog_insns;
+	__aligned_u64 jited_funcs;
+	__u32 nr_jited_funcs;
 	__u64 load_time;	/* ns since boottime */
 	__u32 created_by_uid;
 	__u32 nr_map_ids;