From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753106AbeDQSQm (ORCPT ); Tue, 17 Apr 2018 14:16:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:43094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752710AbeDQSQl (ORCPT ); Tue, 17 Apr 2018 14:16:41 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D2C1721789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Tue, 17 Apr 2018 14:16:38 -0400 From: Steven Rostedt To: Arnaldo Carvalho de Melo Cc: Dominik Brodowski , LKML , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH v2] tracing/x86: Update syscall trace events to handle new x86 syscall func names Message-ID: <20180417141638.4bf42498@gandalf.local.home> In-Reply-To: <20180417181304.GA2895@kernel.org> References: <20180417130702.01575029@gandalf.local.home> <20180417172236.GA17342@light.dominikbrodowski.net> <20180417180430.GF3625@kernel.org> <20180417181304.GA2895@kernel.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Apr 2018 15:13:04 -0300 Arnaldo Carvalho de Melo wrote: > Em Tue, Apr 17, 2018 at 03:04:30PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Apr 17, 2018 at 07:22:36PM +0200, Dominik Brodowski escreveu: > > > > Added back original compare to not miss 32bit kernel syscalls > > > > > > s/32bit/32bit and 0-parameter syscalls. > > > > So this should have covered 0-parameter syscalls, ok, I'm double > > checking that the last patch is the one I have running... Because > > 0-parameter syscalls are not working for me, i.e. no > > syscalls:sys_enter_getppid, for instance. > > Yeah, failing: > > [root@jouet ~]# strace -e openat -e file perf test -F -v "mmap interface" |& grep syscalls > openat(AT_FDCWD, "/sys/kernel/debug/tracing/events/syscalls/sys_enter_getsid/format", O_RDONLY) = 3 > openat(AT_FDCWD, "/sys/kernel/debug/tracing/events/syscalls/sys_enter_getppid/format", O_RDONLY) = -1 ENOENT (No such file or directory) > [root@jouet ~]# > > [root@jouet ~]# ls -la /sys/kernel/debug/tracing/events/syscalls/sys_enter_getppid/format > ls: cannot access '/sys/kernel/debug/tracing/events/syscalls/sys_enter_getppid/format': No such file or directory > [root@jouet ~]# > > With: > > +#define ARCH_HAS_SYSCALL_MATCH_SYM_NAME > +static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) > +{ > + /* > + * Compare the symbol name with the system call name. Skip the > + * "__x64_sys" prefix. > + */ > + return !strcmp(sym + 9, name + 3) || !strcmp(sym + 3, name + 3); > +} > > in place. > Yeah, I did a test too, and found that I'm missing sys_clock_nanosleep. I'm looking into it. -- Steve