Shubham Bansal
39c13c204b
arm: eBPF JIT compiler
...
The JIT compiler emits ARM 32 bit instructions. Currently, It supports
eBPF only. Classic BPF is supported because of the conversion by BPF core.
This patch is essentially changing the current implementation of JIT compiler
of Berkeley Packet Filter from classic to internal with almost all
instructions from eBPF ISA supported except the following
BPF_ALU64 | BPF_DIV | BPF_K
BPF_ALU64 | BPF_DIV | BPF_X
BPF_ALU64 | BPF_MOD | BPF_K
BPF_ALU64 | BPF_MOD | BPF_X
BPF_STX | BPF_XADD | BPF_W
BPF_STX | BPF_XADD | BPF_DW
Implementation is using scratch space to emulate 64 bit eBPF ISA on 32 bit
ARM because of deficiency of general purpose registers on ARM. Currently,
only LITTLE ENDIAN machines are supported in this eBPF JIT Compiler.
Tested on ARMv7 with QEMU by me (Shubham Bansal).
Testing results on ARMv7:
1) test_bpf: Summary: 341 PASSED, 0 FAILED, [312/333 JIT'ed]
2) test_tag: OK (40945 tests)
3) test_progs: Summary: 30 PASSED, 0 FAILED
4) test_lpm: OK
5) test_lru_map: OK
Above tests are all done with following flags enabled discreatly.
1) bpf_jit_enable=1
a) CONFIG_FRAME_POINTER enabled
b) CONFIG_FRAME_POINTER disabled
2) bpf_jit_enable=1 and bpf_jit_harden=2
a) CONFIG_FRAME_POINTER enabled
b) CONFIG_FRAME_POINTER disabled
See Documentation/networking/filter.txt for more information.
Signed-off-by: Shubham Bansal <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2017-08-22 09:26:43 -07:00
..
boot
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-08-21 17:06:42 -07:00
common
arm: implement ->dma_supported instead of ->set_dma_mask
2017-06-28 06:54:49 -07:00
configs
multi_v7_defconfig: Make rockchip PHY built-in
2017-08-11 14:28:58 -07:00
crypto
crypto: arm/crc32 - enable module autoloading based on CPU feature bits
2017-06-01 12:55:42 +08:00
firmware
include
mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem
2017-08-10 15:54:07 -07:00
kernel
Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-07-27 10:35:07 -07:00
kvm
Merge branch 'kvmarm-master/master' into HEAD
2017-06-15 09:35:15 +01:00
lib
mach-actions
ARM: owl: smp: Drop bogus holding pen
2017-07-03 14:31:47 +02:00
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
clocksource/drivers/fttmr010: Merge Moxa into FTTMR010
2017-06-12 10:45:10 +02:00
mach-at91
Fixes for 4.12:
2017-06-18 23:12:36 -07:00
mach-axxia
mach-bcm
ARM: SoC platform updates
2017-07-04 14:34:51 -07:00
mach-berlin
mach-clps711x
clocksource/drivers: Rename CLKSRC_OF to TIMER_OF
2017-06-14 12:01:03 +02:00
mach-cns3xxx
mach-davinci
ARM: davinci: normalize clk API
2017-07-27 13:15:29 +02:00
mach-digicolor
mach-dove
ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()
2017-06-28 15:13:55 -05:00
mach-ebsa110
mach-efm32
mach-ep93xx
ARM: ep93xx: normalize clk API
2017-07-27 22:57:24 +02:00
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-imx
ARM: imx6ull: Make suspend/resume work like on 6ul
2017-06-07 11:38:40 +08:00
mach-integrator
mach-iop13xx
ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()
2017-06-28 15:13:55 -05:00
mach-iop32x
mach-iop33x
mach-ixp4xx
ARM: ixp4xx: fix ioport_unmap definition
2017-07-27 22:57:53 +02:00
mach-keystone
mach-ks8695
mach-lpc18xx
mach-lpc32xx
mach-mediatek
clocksource/drivers: Rename clocksource_probe to timer_probe
2017-06-14 11:59:16 +02:00
mach-meson
arm: meson: select the clock controller for Meson8
2017-06-09 11:15:36 -07:00
mach-mmp
ARM: mmp: mark usb_dma_mask as __maybe_unused
2017-07-27 22:57:49 +02:00
mach-moxart
clocksource/drivers/fttmr010: Merge Moxa into FTTMR010
2017-06-12 10:45:10 +02:00
mach-mv78xx0
ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()
2017-06-28 15:13:55 -05:00
mach-mvebu
ARM: mvebu: use __pa_symbol in the mv98dx3236 platform SMP code
2017-07-18 11:26:30 +02:00
mach-mxs
mach-netx
mach-nomadik
mach-nspire
mach-omap1
ARM: omap1: avoid unused variable warning
2017-07-27 22:57:46 +02:00
mach-omap2
ARM: SoC fixes for 4.13
2017-08-04 15:12:15 -07:00
mach-orion5x
ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge()
2017-06-28 15:13:55 -05:00
mach-oxnas
mach-picoxcell
mach-prima2
ARM: sirf: mark sirfsoc_init_late as __maybe_unused
2017-07-27 22:57:44 +02:00
mach-pxa
ARM: pxa: select both FB and FB_W100 for eseries
2017-07-27 22:57:55 +02:00
mach-qcom
mach-realview
mach-rockchip
ARM: SoC platform updates
2017-07-04 14:34:51 -07:00
mach-rpc
ARM: rpc: rename RAM_SIZE macro
2017-07-27 22:57:38 +02:00
mach-s3c24xx
clocksource/drivers: Rename CLKSRC_OF to TIMER_OF
2017-06-14 12:01:03 +02:00
mach-s3c64xx
dmaengine updates for 4.13-rc1
2017-07-08 12:36:50 -07:00
mach-s5pv210
mach-sa1100
ARM: sa1100: normalize clk API
2017-07-27 13:15:50 +02:00
mach-shmobile
Third Round of Renesas ARM Based SoC Fixes for v4.13
2017-08-04 12:54:41 +02:00
mach-socfpga
mach-spear
dmaengine updates for 4.13-rc1
2017-07-08 12:36:50 -07:00
mach-sti
mach-stm32
ARM: stm32: Introduce MACH_STM32F469 flag
2017-06-18 20:10:27 -07:00
mach-sunxi
clocksource/drivers: Rename clocksource_probe to timer_probe
2017-06-14 11:59:16 +02:00
mach-tango
mach-tegra
mach-u300
clocksource/drivers: Rename clocksource_probe to timer_probe
2017-06-14 11:59:16 +02:00
mach-uniphier
mach-ux500
drivers/perf: arm_pmu: Request PMU SPIs with IRQF_PER_CPU
2017-07-27 13:43:22 +01:00
mach-versatile
mach-vexpress
mach-vt8500
mach-w90x900
ARM: w90x900: normalize clk API
2017-07-27 22:57:36 +02:00
mach-zx
mach-zynq
clocksource/drivers: Rename clocksource_probe to timer_probe
2017-06-14 11:59:16 +02:00
mm
ARM: NOMMU: Wire-up default DMA interface
2017-07-20 16:09:27 +02:00
net
arm: eBPF JIT compiler
2017-08-22 09:26:43 -07:00
nwfpe
oprofile
plat-iop
plat-omap
plat-orion
plat-pxa
plat-samsung
plat-versatile
probes
tools
vdso
vfp
xen
This is the first pull request for the new dma-mapping subsystem
2017-07-06 19:20:54 -07:00
Kconfig
arm: eBPF JIT compiler
2017-08-22 09:26:43 -07:00
Kconfig-nommu
Kconfig.debug
SoC for 4.13:
2017-06-18 22:53:20 -07:00
Makefile
ARM: Prepare Actions Semi S500
2017-06-21 18:08:41 +02:00