sample: bpf: syscall_tp_user: Print result of verify_map
[linux-2.6-microblaze.git] / samples / bpf / syscall_tp_user.c
index a0ebf18..c553830 100644 (file)
@@ -36,6 +36,9 @@ static void verify_map(int map_id)
                fprintf(stderr, "failed: map #%d returns value 0\n", map_id);
                return;
        }
+
+       printf("verify map:%d val: %d\n", map_id, val);
+
        val = 0;
        if (bpf_map_update_elem(map_id, &key, &val, BPF_ANY) != 0) {
                fprintf(stderr, "map_update failed: %s\n", strerror(errno));