perf powerpc: Move syscall.tbl check to check-headers.sh
[linux-2.6-microblaze.git] / samples / bpf / tracex4_kern.c
index b1bb9df..eb0f8fd 100644 (file)
@@ -15,12 +15,12 @@ struct pair {
        u64 ip;
 };
 
-struct bpf_map_def SEC("maps") my_map = {
-       .type = BPF_MAP_TYPE_HASH,
-       .key_size = sizeof(long),
-       .value_size = sizeof(struct pair),
-       .max_entries = 1000000,
-};
+struct {
+       __uint(type, BPF_MAP_TYPE_HASH);
+       __type(key, long);
+       __type(value, struct pair);
+       __uint(max_entries, 1000000);
+} my_map SEC(".maps");
 
 /* kprobe is NOT a stable ABI. If kernel internals change this bpf+kprobe
  * example will no longer be meaningful