]> granicus.if.org Git - strace/commitdiff
xlat: provide fallback definitions for BPF_* constants
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 7 May 2018 10:52:16 +0000 (10:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 7 May 2018 10:52:16 +0000 (10:52 +0000)
* xlat/bpf_class.in: Add default values for constants.
* xlat/bpf_miscop.in: Likewise.
* xlat/bpf_mode.in: Likewise.
* xlat/bpf_op_alu.in: Likewise.
* xlat/bpf_op_jmp.in: Likewise.
* xlat/bpf_rval.in: Likewise.
* xlat/bpf_size.in: Likewise.
* xlat/bpf_src.in: Likewise.

xlat/bpf_class.in
xlat/bpf_miscop.in
xlat/bpf_mode.in
xlat/bpf_op_alu.in
xlat/bpf_op_jmp.in
xlat/bpf_rval.in
xlat/bpf_size.in
xlat/bpf_src.in

index f8bd3d7f2c9f9aafe7ffb1f238d1ff0c7a491a86..8088cba5a7f164608683a1bd44780851badf873e 100644 (file)
@@ -1,8 +1,8 @@
-BPF_LD
-BPF_LDX
-BPF_ST
-BPF_STX
-BPF_ALU
-BPF_JMP
-BPF_RET
-BPF_MISC
+BPF_LD         0x0
+BPF_LDX                0x1
+BPF_ST         0x2
+BPF_STX                0x3
+BPF_ALU                0x4
+BPF_JMP                0x5
+BPF_RET                0x6
+BPF_MISC       0x7
index c9703b1d7b51ce14706992742bfa6991a8a9e224..6df47b3a0b75c385c8701f6ecae84f94ad254396 100644 (file)
@@ -1,2 +1,2 @@
-BPF_TAX
-BPF_TXA
+BPF_TAX        0x00
+BPF_TXA        0x80
index 10adecddb30f223da6e5c41f2f5b5c5403536031..a412c0ed8454d3019d2f07e13ed85ff50984358e 100644 (file)
@@ -1,7 +1,7 @@
-BPF_IMM
-BPF_ABS
-BPF_IND
-BPF_MEM
-BPF_LEN
-BPF_MSH
-BPF_XADD
+BPF_IMM                0x00
+BPF_ABS                0x20
+BPF_IND                0x40
+BPF_MEM                0x60
+BPF_LEN                0x80
+BPF_MSH                0xa0
+BPF_XADD       0xc0
index 580b68bcae0a3015193304dcba044bcba2d2c253..5016a46ec9078d07fba8e978b70ef1f0edc6a1f4 100644 (file)
@@ -1,14 +1,14 @@
-BPF_ADD
-BPF_SUB
-BPF_MUL
-BPF_DIV
-BPF_OR
-BPF_AND
-BPF_LSH
-BPF_RSH
-BPF_NEG
-BPF_MOD
-BPF_XOR
-BPF_MOV
-BPF_ARSH
-BPF_END
+BPF_ADD                0x00
+BPF_SUB                0x10
+BPF_MUL                0x20
+BPF_DIV                0x30
+BPF_OR         0x40
+BPF_AND                0x50
+BPF_LSH                0x60
+BPF_RSH                0x70
+BPF_NEG                0x80
+BPF_MOD                0x90
+BPF_XOR                0xa0
+BPF_MOV                0xb0
+BPF_ARSH       0xc0
+BPF_END                0xd0
index 48fcb0753c0e2755a1869f660b122ae2cfd84909..1e9b6f701967502e57f4957b12fdf43510768871 100644 (file)
@@ -1,14 +1,14 @@
-BPF_JA
-BPF_JEQ
-BPF_JGT
-BPF_JGE
-BPF_JSET
-BPF_JNE
-BPF_JLT
-BPF_JLE
-BPF_JSGT
-BPF_JSGE
-BPF_JSLT
-BPF_JSLE
-BPF_CALL
-BPF_EXIT
+BPF_JA         0x00
+BPF_JEQ                0x10
+BPF_JGT                0x20
+BPF_JGE                0x30
+BPF_JSET       0x40
+BPF_JNE                0x50
+BPF_JSGT       0x60
+BPF_JSGE       0x70
+BPF_CALL       0x80
+BPF_EXIT       0x90
+BPF_JLT                0xa0
+BPF_JLE                0xb0
+BPF_JSLT       0xc0
+BPF_JSLE       0xd0
index 44e137ecf1de1b449ac3976bcbc7710c682c3c20..37073bd241f0f047c64dc7f29f98156277c5249a 100644 (file)
@@ -1,3 +1,3 @@
-BPF_K
-BPF_X
-BPF_A
+BPF_K  0x00
+BPF_X  0x08
+BPF_A  0x10
index 5e0a5085e8c7831992383524d5e34312ce63e8b2..104428fc41ec5867da79bca5d2e7344aa042d160 100644 (file)
@@ -1,4 +1,4 @@
-BPF_W
-BPF_H
-BPF_B
-BPF_DW
+BPF_W  0x00
+BPF_H  0x08
+BPF_B  0x10
+BPF_DW 0x18
index ede6abb90563ec8fe90a6e101a6429d2f14d7f5f..46237178a19b070cf24cca46bf1b47e2a0cddec2 100644 (file)
@@ -1,2 +1,2 @@
-BPF_K
-BPF_X
+BPF_K  0x00
+BPF_X  0x08