Daniel Borkmann
6205b9cf20
bpf: don't emit mov A,A on return
...
While debugging with bpf_jit_disasm I noticed emissions of 'mov %eax,%eax',
and found that this comes from BPF_RET | BPF_A translations from classic
BPF. Emitting this is unnecessary as BPF_REG_A is mapped into BPF_REG_0
already, therefore only emit a mov when immediates are used as return value.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-02-21 22:07:11 -05:00
..
2015-12-20 08:21:00 +01:00
2016-01-24 12:39:09 -08:00
2016-02-21 21:54:05 -05:00
2015-11-30 14:47:33 -05:00
2015-12-14 16:09:30 -05:00
2016-02-10 23:24:06 +08:00
2016-01-29 11:47:24 +01:00
2016-02-19 15:27:36 -05:00
2015-12-01 15:45:05 -05:00
2016-01-21 19:36:09 +01:00
2016-02-21 22:07:11 -05:00
2016-02-11 03:54:14 -05:00
2015-12-14 16:09:30 -05:00
2015-11-18 16:27:46 -05:00
2016-01-07 14:31:26 -05:00
2016-01-06 16:31:56 -05:00
2015-11-23 14:56:15 -05:00
2016-02-11 03:54:14 -05:00
2016-02-18 14:34:54 -05:00
2016-02-21 22:00:28 -05:00
2016-01-29 22:56:46 -08:00
2016-01-19 14:21:08 -05:00
2016-02-11 03:54:14 -05:00
2016-02-17 16:12:13 -05:00
2016-02-01 15:56:08 -08:00
2016-01-04 20:40:41 +01:00
2016-02-21 22:00:28 -05:00
2016-02-18 11:42:22 -05:00
2016-02-18 11:42:22 -05:00
2016-01-04 21:48:15 -05:00
2016-02-19 23:43:10 -05:00
2016-02-09 06:43:50 -05:00
2016-02-11 03:54:14 -05:00
2016-02-11 09:45:24 -05:00
2016-01-26 11:32:05 +01:00
2016-01-12 18:57:02 -08:00
2016-02-21 22:07:10 -05:00
2016-02-17 15:41:54 -05:00
2016-01-23 18:45:06 -08:00
2016-01-28 16:21:31 -08:00
2016-02-18 11:42:19 -05:00
2016-02-07 14:06:26 -05:00
2015-12-08 21:55:49 -05:00
2016-01-14 11:10:13 +01:00
2016-01-15 14:35:24 -05:00
2016-02-16 20:21:48 -05:00
2016-01-14 16:00:49 -08:00