samples: bpf: Fix lwt_len_hist reusing previous BPF map
Daniel T. Lee authored
[ Upstream commit 0afe0a99 ]

Currently, lwt_len_hist's map lwt_len_hist_map is uses pinning, and the
map isn't cleared on test end. This leds to reuse of that map for
each test, which prevents the results of the test from being accurate.

This commit fixes the problem by removing of pinned map from bpffs.
Also, this commit add the executable permission to shell script
files.

Fixes: f74599f7

 ("bpf: Add tests and samples for LWT-BPF")
Signed-off-by: default avatarDaniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201124090310.24374-7-danieltimlee@gmail.com

Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
5f73062a
Name Last commit Last update
..
auxdisplay auxdisplay: Replace licenses with SPDX identifiers
bpf samples: bpf: Fix lwt_len_hist reusing previous BPF map
configfs configfs: make config_item_type const
connector Merge tag 'docs-4.15' of git://git.lwn.net/linux
hidraw kbuild: remove all dummy assignments to obj-
hw_breakpoint perf: Add context field to perf_event
kdb kdb: Add kdb kernel module sample
kfifo kfifo: clean up example to not use page_link
kobject kobject: Remove redundant license text
kprobes arch: remove tile port
livepatch livepatch: check kzalloc return values
mei mei: samples: fix a signedness bug in amt_host_if_call()
mic/mpssd misc: vop: add round_up(x,4) for vring_size to avoid kernel panic
pktgen samples: pktgen: fix proc_cmd command result check logic
qmi samples: Introduce Qualcomm QMI sample client
rpmsg rpmsg: Allow callback to return errors
seccomp kbuild: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBS
statx kbuild: remove all dummy assignments to obj-
timers License cleanup: add SPDX GPL-2.0 license identifier to files with no license
trace_events Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
trace_printk tracing: Add trace_printk sample code
uhid kbuild: remove all dummy assignments to obj-
v4l [media] media: v4l2-pci-skeleton: Fix error handling path in 'skeleton_probe()'
vfio-mdev vmalloc: fix remap_vmalloc_range() bounds checks
watchdog License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Kconfig
Makefile