diff options
| author | Tycho Andersen <[email protected]> | 2015-09-10 18:25:07 -0600 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-09-11 14:52:41 -0700 |
| commit | 19539ce783dd27768d4f7f3b753152bf983db65b (patch) | |
| tree | 9b60e9e3326ed629ada5b85bbfbdb018550eb223 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 1853c949646005b5959c483becde86608f548f24 (diff) | |
ebpf: emit correct src_reg for conditional jumps
Instead of always emitting BPF_REG_X, let's emit BPF_REG_X only when the
source actually is BPF_X. This causes programs generated by the classic
converter to not be importable via bpf(), as the eBPF verifier checks that
the src_reg is correct or 0. While not a problem yet, this will be a
problem when BPF_PROG_DUMP lands, and we can potentially dump and re-import
programs generated by the converter.
Signed-off-by: Tycho Andersen <[email protected]>
CC: Alexei Starovoitov <[email protected]>
CC: Daniel Borkmann <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions