From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF969C4360F for ; Thu, 4 Apr 2019 18:56:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C4F152075E for ; Thu, 4 Apr 2019 18:56:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c8WEdEmL"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M76lnXAH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C4F152075E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PFcLT3WnLTo7bzeKF4o+BlxilFZ2ts+Wzige8Vyk4OY=; b=c8WEdEmL1uiGWb XGmoAMRaaStjnkboGCYF4LlyUKn6W49ycywXcMKKdSuad2cLFhCX0B9TkUanrwUT/nyC+1Q9OubtV SEaTp7IP0vXPSsC/6/+pnKXQ/mLxEQhEdVTmWh0bAbgu65A9k1qF3obyTE/ORyc3c4XhMnZwSxRkn pbbXeMJjCevwRfcEkIA9mRPXUalP1yS9t9XnAciuiiXyuJwxwTn6DWCgI/CJ73Ks37xpESzfFh/T1 3EHIbd+MX4oruQPRZvqcMeoQxYUjp5YECPAjVAX0H80b7MfmQg4wYFQkUHfVHzrIIdymtvkSgK11o 2sn11mJGajeG0wHs9o+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC7XR-0002gj-Pl; Thu, 04 Apr 2019 18:56:37 +0000 Received: from mail-yb1-xb42.google.com ([2607:f8b0:4864:20::b42]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC7XP-0002g6-3R; Thu, 04 Apr 2019 18:56:36 +0000 Received: by mail-yb1-xb42.google.com with SMTP id c15so1430474ybk.8; Thu, 04 Apr 2019 11:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=czb2ENwQGWnSQaCPQIrYNCynYy2KSbTtKbmrxk8aiuA=; b=M76lnXAHZW3E/8sfPEo6AMsEvKo1Fj2EhqlUI6eC714OKjs2ScEs0g5Kdp16SCqkPF N0+X6xTwMiV/VBKBoM8U7lCaiLZf0D5h8H0NYyJsPMWgNRUMOJFoGIeE3Kw2Z03GU9vT zVyDQ6CnNyqqWAbFqnkhKqeqcKWpSWW3q20J6IQ+uvd8srIqBj9yOsnXEon9ojIURp4v bTLlHhqhnN0+9uDyqXd9PWoJbT4ZfrXOkz5CQF3mN7LEVXFyBxCwjgwaWqj7DMqenuLs uXedhWbK9lmCM0WnwBXxlX+/J6awXNP/t6T5RlKFdEob9MOiRhxs9ue2K7i3gYHUzYfA pf5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=czb2ENwQGWnSQaCPQIrYNCynYy2KSbTtKbmrxk8aiuA=; b=ioU4IdqIbOHXWsJ5DwCu1u1jqf4f38Pcmeyj6i8Mo1tVSfGGjAVWuGmvAzlKAp6daP Fl23oT3TFs0WIOJjpfP8M0iB79vw3ZWF+qhkQBgvfJKK4pFMVz5xPwwSTDK28I8zIoVz wi6OhQmpWsLFsve+ZaO3I8Bmek9TIakmc84hckqFBfoZxxu2RWtEMcGA4si7NPbiAlPs hEf9HbL5abwPL35OqBx/SlVBHRCICPeMvKtXSkqqtRN3vfvSaJGHxKdGExwjp59gRcbX 5uIXAsllatauSoEeuR92JxFsvjvlsH4YicUv0Zc2Em4LAgOrsDxljgMYms7t1E431Glc I+/g== X-Gm-Message-State: APjAAAUrnVodHpbZs3ikiOWGP2IRloZmcbBlbwGQ6KyCeRTvleOvSZs4 66qMOPO5BdwzvUF2339tiiqktJycsiNM/ZBjsVM= X-Google-Smtp-Source: APXvYqw2AeCdLcNxw3yXyG2q9A1yJJjPzbkEFkUNasjS0SEO0/rC6tigTrt97xSpbl9QpVkQd9PzuPxHxf4nnJWaXhg= X-Received: by 2002:a25:6c88:: with SMTP id h130mr6951040ybc.112.1554404194312; Thu, 04 Apr 2019 11:56:34 -0700 (PDT) MIME-Version: 1.0 References: <20190401134104.676620247@goodmis.org> <20190401134421.278590567@goodmis.org> In-Reply-To: <20190401134421.278590567@goodmis.org> From: Max Filippov Date: Thu, 4 Apr 2019 11:56:23 -0700 Message-ID: Subject: Re: [PATCH 5/6 v3] syscalls: Remove start and number from syscall_get_arguments() args To: Steven Rostedt X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_115635_183384_4655075D X-CRM114-Status: GOOD ( 11.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:IA64 \(Itanium\) PL..." , "Gustavo A. R. Silva" , Peter Zijlstra , Palmer Dabbelt , Dominik Brodowski , Oleg Nesterov , "H. Peter Anvin" , "open list:SPARC + UltraSPAR..." , linux-riscv@lists.infradead.org, Ingo Molnar , Linux-Arch , linux-s390 , linux-c6x-dev@linux-c6x.org, "open list:SUPERH" , "open list:QUALCOMM HEXAGON..." , "maintainer:X86 ARCHITECTURE..." , Ingo Molnar , linux-snps-arc@lists.infradead.org, Dave Martin , "moderated list:H8/300 ARCHITECTURE" , linux-xtensa@linux-xtensa.org, Kees Cook , Roland McGrath , linux-um@lists.infradead.org, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, Borislav Petkov , Andy Lutomirski , Thomas Gleixner , "Dmitry V. Levin" , linux-arm-kernel@lists.infradead.org, "open list:PARISC ARCHITECTURE" , linuxppc-dev@lists.ozlabs.org, LKML , Andy Lutomirski , "Eric W. Biederman" , nios2-dev@lists.rocketboards.org, Andrew Morton , Linus Torvalds Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Apr 1, 2019 at 6:45 AM Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > 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. [...] > arch/xtensa/include/asm/syscall.h | 16 ++---- For xtensa changes: Acked-by: Max Filippov -- Thanks. -- Max _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel