linux_dsm_epyc7002/arch/arm
Steven Rostedt (Red Hat) b35f549df1 syscalls: Remove start and number from syscall_get_arguments() args
At Linux Plumbers, Andy Lutomirski approached me and pointed out that the
function call syscall_get_arguments() implemented in x86 was horribly
written and not optimized for the standard case of passing in 0 and 6 for
the starting index and the number of system calls to get. When looking at
all the users of this function, I discovered that all instances pass in only
0 and 6 for these arguments. Instead of having this function handle
different cases that are never used, simply rewrite it to return the first 6
arguments of a system call.

This should help out the performance of tracing system calls by ptrace,
ftrace and perf.

Link: http://lkml.kernel.org/r/20161107213233.754809394@goodmis.org

Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Dave Martin <dave.martin@arm.com>
Cc: "Dmitry V. Levin" <ldv@altlinux.org>
Cc: x86@kernel.org
Cc: linux-snps-arc@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-c6x-dev@linux-c6x.org
Cc: uclinux-h8-devel@lists.sourceforge.jp
Cc: linux-hexagon@vger.kernel.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: nios2-dev@lists.rocketboards.org
Cc: openrisc@lists.librecores.org
Cc: linux-parisc@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-riscv@lists.infradead.org
Cc: linux-s390@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Cc: linux-um@lists.infradead.org
Cc: linux-xtensa@linux-xtensa.org
Cc: linux-arch@vger.kernel.org
Acked-by: Paul Burton <paul.burton@mips.com> # MIPS parts
Acked-by: Max Filippov <jcmvbkbc@gmail.com> # For xtensa changes
Acked-by: Will Deacon <will.deacon@arm.com> # For the arm64 bits
Reviewed-by: Thomas Gleixner <tglx@linutronix.de> # for x86
Reviewed-by: Dmitry V. Levin <ldv@altlinux.org>
Reported-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2019-04-05 09:26:43 -04:00
..
boot i.MX fixes for 5.1: 2019-03-25 17:06:41 +01:00
common ARM: 8847/1: pm: fix HYP/SVC mode mismatch when MCPM is used 2019-02-26 11:32:54 +00:00
configs ARM: imx_v4_v5_defconfig: enable PWM driver 2019-03-22 09:56:11 +08:00
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2019-03-05 09:09:55 -08:00
firmware
include syscalls: Remove start and number from syscall_get_arguments() args 2019-04-05 09:26:43 -04:00
kernel ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
kvm ARM: some cleanups, direct physical timer assignment, cache sanitization 2019-03-15 15:00:28 -07:00
lib ARM: 8844/1: use unified assembler in assembly files 2019-02-26 11:26:07 +00:00
mach-actions ARM: actions: remove boot_lock and pen_release 2019-02-01 21:59:15 +00:00
mach-alpine PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 treewide: add intermediate .s files to targets 2018-12-23 10:12:08 +09:00
mach-axxia
mach-bcm bcm2835-pm: Move bcm2835-watchdog's DT probe to an MFD. 2019-01-09 16:55:06 +01:00
mach-berlin
mach-clps711x
mach-cns3xxx irqchip updates for 5.1, take #2 2019-03-21 12:30:54 +01:00
mach-davinci Power management updates for 5.1-rc1 2019-03-06 12:59:46 -08:00
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx arch/arm/mach-ep93xx: Remove duplicate header 2019-01-30 22:59:53 +01:00
mach-exynos ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
mach-footbridge PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
mach-gemini
mach-highbank
mach-hisi
mach-imx ARM: imx6q: cpuidle: fix bug that CPU might not wake up at expected time 2019-03-19 16:48:00 +08:00
mach-integrator ARM: integrator: impd1: use struct_size() in devm_kzalloc() 2019-01-11 13:33:00 +01:00
mach-iop13xx
mach-iop32x ARM: iop32x/n2100: fix PCI IRQ mapping 2019-01-30 11:34:42 +01:00
mach-iop33x
mach-ixp4xx PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
mach-keystone
mach-ks8695 ARM: 8844/1: use unified assembler in assembly files 2019-02-26 11:26:07 +00:00
mach-lpc18xx
mach-lpc32xx ARM: lpc32xx: remove platform data of ARM PL111 LCD controller 2019-02-03 21:40:41 +02:00
mach-mediatek arm: mediatek: add MT7629 smp bring up code 2019-02-07 17:59:16 +01:00
mach-meson ARM: meson: remove COMMON_CLK_AMLOGIC selection 2019-02-06 19:53:02 -08:00
mach-milbeaut ARM: milbeaut: Add basic support for Milbeaut m10v SoC 2019-03-01 15:18:26 +01:00
mach-mmp regulator: fixed/gpio: Pull inversion/OD into gpiolib 2019-02-06 15:58:29 +00:00
mach-moxart
mach-mv78xx0 PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
mach-mvebu PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
mach-mxs
mach-netx
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 Merge branch 'i2c/for-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-03-08 09:27:33 -08:00
mach-omap2 ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
mach-orion5x ARM: orion5x: Include platform_data/dsa.h 2019-01-17 11:31:24 -08:00
mach-oxnas ARM: oxnas: remove CPU hotplug implementation 2019-02-01 21:59:15 +00:00
mach-picoxcell
mach-prima2 ARM: smp: remove arch-provided "pen_release" 2019-02-01 22:05:23 +00:00
mach-pxa ARM: SoC platform updates for 5.1 2019-03-06 09:33:05 -08:00
mach-qcom ARM: qcom: remove unnecessary boot_lock 2019-02-01 21:59:15 +00:00
mach-rda ARM: Prepare RDA8810PL SoC 2018-12-31 13:09:39 -08:00
mach-realview ARM: vexpress/realview: consolidate immitation CPU hotplug 2018-12-14 14:44:59 +00:00
mach-rockchip
mach-rpc
mach-s3c24xx ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify 2019-01-07 20:41:01 +01:00
mach-s3c64xx regulator: wm8994: Pass descriptor instead of GPIO number 2018-11-15 11:42:08 -08:00
mach-s5pv210 ARM: s5pv210: Remove legacy setting of external wakeup interrupts 2018-11-12 21:19:48 +01:00
mach-sa1100 This is the bulk of GPIO changes for the v5.1 cycle: 2019-03-08 10:09:53 -08:00
mach-shmobile ARM: shmobile: Fix R-Car Gen2 regulator quirk 2019-01-07 13:24:07 +01:00
mach-socfpga reset: socfpga: declare socfpga_reset_init in a header file 2019-01-28 11:16:04 +01:00
mach-spear ARM: smp: remove arch-provided "pen_release" 2019-02-01 22:05:23 +00:00
mach-sti ARM: sti: remove pen_release and boot_lock 2018-12-20 14:32:15 +01:00
mach-stm32
mach-sunxi reset: sunxi: declare sun6i_reset_init in a header file 2019-01-28 11:16:04 +01:00
mach-tango ARM: tango: Improve ARCH_MULTIPLATFORM compatibility 2019-01-30 11:45:10 +01:00
mach-tegra ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
mach-u300
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress ARM: vexpress/realview: consolidate immitation CPU hotplug 2018-12-14 14:44:59 +00:00
mach-vt8500
mach-w90x900
mach-zx
mach-zynq
mm ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
net arm: bpf: implement jitting of JMP32 2019-01-26 13:33:02 -08:00
nwfpe
oprofile Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
plat-iop
plat-omap ARM: Kconfig: remove useless "default n" 2018-11-08 10:53:09 +00:00
plat-orion ARM: orion5x: Include platform_data/dsa.h 2019-01-17 11:31:24 -08:00
plat-pxa ARM: pxa: ssp: unneeded to free devm_ allocated data 2019-01-23 21:32:01 +01:00
plat-samsung ARM: samsung: Limit SAMSUNG_PM_DEBUG config option to non-Exynos platforms 2018-11-18 15:11:27 +01:00
plat-versatile ARM: versatile: rename and comment SMP implementation 2018-12-14 14:44:59 +00:00
probes ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction 2019-02-12 15:20:58 +00:00
tools y2038: add 64-bit time_t syscalls to all 32-bit architectures 2019-02-07 00:13:28 +01:00
vdso
vfp Merge branches 'misc', 'sa1100-for-next' and 'spectre' into for-linus 2019-01-02 10:37:05 +00:00
xen get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
Kconfig ARM: davinci: fix build failure with allnoconfig 2019-03-25 16:59:30 +01:00
Kconfig-nommu ARM: 8832/1: NOMMU: Limit visibility for CONFIG_FLASH_{MEM_BASE,SIZE} 2019-02-01 21:44:46 +00:00
Kconfig.debug i.MX SoC changes for 4.21: 2018-12-12 13:52:48 -08:00
Makefile ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00