22 Mar, 2013
1 commit
-
If bpf_jit_enable > 1, then we dump the emitted JIT compiled image
after creation. Currently, only SPARC and PowerPC has similar output
as in the reference implementation on x86_64. Make a small helper
function in order to reduce duplicated code and make the dump output
uniform across architectures x86_64, SPARC, PPC, ARM (e.g. on ARM
flen, pass and proglen are currently not shown, but would be
interesting to know as well), also for future BPF JIT implementations
on other archs.Cc: Mircea Gherzan
Cc: Matt Evans
Cc: Eric Dumazet
Cc: David S. Miller
Signed-off-by: Daniel Borkmann
Signed-off-by: David S. Miller
07 Nov, 2012
1 commit
-
This patch is a follow-up for patch "net: filter: add vlan tag access"
to support the new VLAN_TAG/VLAN_TAG_PRESENT accessors in BPF JIT.Signed-off-by: Daniel Borkmann
Signed-off-by: David S. Miller
28 Sep, 2012
1 commit
-
This patch is a follow-up for patch "filter: add XOR instruction for use
with X/K" that implements BPF SPARC JIT parts for the BPF XOR operation.Signed-off-by: Daniel Borkmann
Signed-off-by: David S. Miller
07 Jun, 2012
1 commit
-
Signed-off-by: David S. Miller
18 Apr, 2012
3 commits
-
Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
Fix mixed space and tabs.
Put bpf_jit_load_*[] externs into bpf_jit.h
"while(0)" --> "while (0)"
"COND (X)" --> "COND(X)"
Document branch offset calculations, and bpf_error's return
sequence.Document the reason we need to emit three nops between the
%y register write and the divide instruction.Remove erroneous trailing semicolons from emit_read_y() and
emit_write_y().Based upon feedback from Sam Ravnborg.
Signed-off-by: David S. Miller
-
Correct conventions comments. %o4 and %o5 were swapped,
%g3 was not documented.Use r_TMP instead of r_SKB_DATA + r_OFF where possible in
assembler stubs.Correct discussion of %o4 and %o5 in one of bpf_jit_compile()'s
comments.Based upon feedback from Richard Mortimer.
Signed-off-by: David S. Miller
17 Apr, 2012
1 commit
-
Signed-off-by: David S. Miller