summaryrefslogtreecommitdiffstats
path: root/samples/bpf/bpf_load.h
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bpf/bpf_load.h')
-rw-r--r--samples/bpf/bpf_load.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/samples/bpf/bpf_load.h b/samples/bpf/bpf_load.h
index 05822f8..4d4fd46 100644
--- a/samples/bpf/bpf_load.h
+++ b/samples/bpf/bpf_load.h
@@ -15,8 +15,14 @@ struct bpf_map_def {
unsigned int inner_map_idx;
};
-typedef void (*fixup_map_cb)(struct bpf_map_def *map, const char *map_name,
- int idx);
+struct bpf_map_data {
+ int fd;
+ char *name;
+ size_t elf_offset;
+ struct bpf_map_def def;
+};
+
+typedef void (*fixup_map_cb)(struct bpf_map_data *map, int idx);
extern int map_fd[MAX_MAPS];
extern int prog_fd[MAX_PROGS];
OpenPOWER on IntegriCloud