#!/bin/bash NS1=lwt_ns1 VETH0=tst_lwt1a VETH1=tst_lwt1b TRACE_ROOT=/sys/kernel/debug/tracing function cleanup { ip route del 192.168.253.2/32 dev $VETH0 2> /dev/null ip link del $VETH0 2> /dev/null ip link del $VETH1 2> /dev/null ip netns exec $NS1 killall netserver ip netns delete $NS1 2> /dev/null } cleanup ip netns add $NS1 ip link add $VETH0 type veth peer name $VETH1 ip link set dev $VETH0 up ip addr add 192.168.253.1/24 dev $VETH0 ip link set $VETH1 netns $NS1 ip netns exec $NS1 ip link set dev $VETH1 up ip netns exec $NS1 ip addr add 192.168.253.2/24 dev $VETH1 ip netns exec $NS1 netserver echo 1 > ${TRACE_ROOT}/tracing_on cp /dev/null ${TRACE_ROOT}/trace ip route add 192.168.253.2/32 encap bpf out obj lwt_len_hist_kern.o section len_hist dev $VETH0 netperf -H 192.168.253.2 -t TCP_STREAM cat ${TRACE_ROOT}/trace | grep -v '^#' ./lwt_len_hist cleanup echo 0 > ${TRACE_ROOT}/tracing_on exit 0 c4bce8623650bb2d610b7e657bc869f'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Hansen <dave.hansen@intel.com>2016-09-12 13:38:42 -0700
committerThomas Gleixner <tglx@linutronix.de>2016-09-13 14:41:36 +0200
commite2753293ac4bce8623650bb2d610b7e657bc869f (patch)
treeee110cd421f9496879a3a51f414d781ddff32d7f
parent5f23f6d082a95237387f18d3fde8d472aae9659a (diff)
x86/pkeys: Fix pkeys build breakage for some non-x86 arches
Guenter Roeck reported breakage on the h8300 and c6x architectures (among others) caused by the new memory protection keys syscalls. This patch does what Arnd suggested and adds them to kernel/sys_ni.c. Fixes: a60f7b69d92c ("generic syscalls: Wire up memory protection keys syscalls") Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dave Hansen <dave.hansen@intel.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Cc: linux-arch@vger.kernel.org Cc: Dave Hansen <dave@sr71.net> Cc: linux-api@vger.kernel.org Link: http://lkml.kernel.org/r/20160912203842.48E7AC50@viggo.jf.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat