aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2016-12-01 10:34:40 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-06 22:24:59 -0500
commitd4aea20d889e05575bb331a3dadf176176f7d631 (patch)
treeb70dc69799ec8cf5db0b5d2ad24e52901e57b815 /tools/perf/scripts/python/stackcollapse.py
parentMerge branch 'w83977af_ir-neatening' (diff)
downloadlinux-d4aea20d889e05575bb331a3dadf176176f7d631.tar.gz
linux-d4aea20d889e05575bb331a3dadf176176f7d631.zip
tun: Use netif_receive_skb instead of netif_rx
This patch changes tun.c to call netif_receive_skb instead of netif_rx when a packet is received (if CONFIG_4KSTACKS is not enabled to avoid stack exhaustion). The difference between the two is that netif_rx queues the packet into the backlog, and netif_receive_skb proccesses the packet in the current context. This patch is required for syzkaller [1] to collect coverage from packet receive paths, when a packet being received through tun (syzkaller collects coverage per process in the process context). As mentioned by Eric this change also speeds up tun/tap. As measured by Peter it speeds up his closed-loop single-stream tap/OVS benchmark by about 23%, from 700k packets/second to 867k packets/second. A similar patch was introduced back in 2010 [2, 3], but the author found out that the patch doesn't help with the task he had in mind (for cgroups to shape network traffic based on the original process) and decided not to go further with it. The main concern back then was about possible stack exhaustion with 4K stacks. [1] https://github.com/google/syzkaller [2] https://www.spinics.net/lists/netdev/thrd440.html#130570 [3] https://www.spinics.net/lists/netdev/msg130570.html Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Acked-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
'2022-07-20 16:49:56 -0700'>2022-07-20drm/i915/guc: Don't use pr_err when not necessaryJohn Harrison3-29/+28 2022-07-19drm/i915/guc: support v69 in parallel to v70Daniele Ceraolo Spurio7-62/+417 2022-07-19drm/i915/gt: Expose per-gt RPS defaults in sysfsAshutosh Dixit6-9/+52 2022-07-19drm/i915/gt: Create gt/gtN/.defaults/ for per gt sysfs defaultsAshutosh Dixit2-0/+12 2022-07-15drm/i915/reset: Handle reset timeouts under unrelated kernel hangsChris Wilson1-3/+3 2022-07-13drm/i915: Add lmem_bar_size modparamPriyanka Dandamudi3-5/+32 2022-07-13drm/i915: Add support for LMEM PCIe resizable barAkeem G Abodunrin1-0/+75 2022-07-13drm/i915: Correct ss -> steering calculation for pre-Xe_HP platformsMatt Roper1-1/+1 2022-07-13drm/i915/ttm: fix 32b buildMatthew Auld6-13/+15 2022-07-12drm/i915/selftests: fix subtraction overflow bugAndrzej Hajda1-1/+1 2022-07-12drm/i915/gt: Only kick the signal worker if there's been an updateChris Wilson1-1/+2 2022-07-12drm/i915: Bump GT idling delay to 2 jiffiesChris Wilson1-1/+1 2022-07-12drm/i915/gem: Look for waitboosting across the whole object prior to individu...Chris Wilson1-0/+34 2022-07-12drm/i915/gt: Serialize TLB invalidates with GT resetsChris Wilson1-1/+14 2022-07-12drm/i915/gt: Serialize GRDOM access between multiple engine resetsChris Wilson1-9/+28 2022-07-12drm/i915/dg2: Add Wa_15010599737Matt Roper2-0/+6 2022-07-11drm/i915/ttm: fix sg_table constructionMatthew Auld7-15/+58 2022-07-11drm/i915/selftests: fix a couple IS_ERR() vs NULL testsDan Carpenter1-4/+4 2022-07-08drm/i915/mtl: Add MeteorLake PCI IDsRadhakrishna Sripada5-0/+36 2022-07-08drm/i915/mtl: Add MeteorLake platform infoRadhakrishna Sripada4-0/+28 2022-07-08drm/i915/gt: Add general DSS steering iterator to intel_gt_mcrMatt Roper6-75/+75 2022-07-08i915/perf: Disable OA sseu config param for gfx12.50+Umesh Nerlige Ramappa1-0/+7 2022-07-08i915/perf: Replace DRM_DEBUG with driver specific drm_dbg callUmesh Nerlige Ramappa1-51/+100 2022-07-07drm/i915/selftests: Grab the runtime pm in shrink_thpChris Wilson1-1/+6 2022-07-06drm/i915/guc: Asynchronous flush of GuC log regionsAlan Previn2-2/+3 2022-07-04drm/i915: Fix vm use-after-free in vma destructionThomas Hellström1-4/+8