Fix BPF instruction count bug.
We were accidentally capping the total number of BPF instructions at
256 when doing label fixup.
Also add a simple binary to print a compiled policy.
Bug: 31848734
Test: Policy attached to the bug works.
Change-Id: I9df058e2f4888289db0219d65ca97851fac515d0
diff --git a/bpf.h b/bpf.h
index e4897e2..60f4d7b 100644
--- a/bpf.h
+++ b/bpf.h
@@ -114,7 +114,7 @@
#define MAX_BPF_LABEL_LEN 32
-#define BPF_LABELS_MAX 256
+#define BPF_LABELS_MAX 512 /* Each syscall could have an argument block. */
struct bpf_labels {
int count;
struct __bpf_label {