From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753910AbZHYNmN (ORCPT ); Tue, 25 Aug 2009 09:42:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753408AbZHYNmM (ORCPT ); Tue, 25 Aug 2009 09:42:12 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:49667 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbZHYNmL (ORCPT ); Tue, 25 Aug 2009 09:42:11 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=iuRTb8RPN07+BTFiog3bMvKzfi0nS2SHT+Bc2AqQsFdea3T870EgBXNyrFcAE6B/pw XMrdMW0zMiavd6u/i08PwDkEI5QG/3JVOe1p4hMsKO24hfyTKRrF4JoaYUAJsP0ONSLp m0KjPZ+zxI9cLDddXWfuJcZWTC9rb6I00J8S8= Date: Tue, 25 Aug 2009 15:42:08 +0200 From: Frederic Weisbecker To: Ingo Molnar Cc: Josh Stone , linux-kernel@vger.kernel.org, Jason Baron , Li Zefan , Steven Rostedt , Peter Zijlstra , Mathieu Desnoyers , Jiaying Zhang , Martin Bligh , Lai Jiangshan , Paul Mundt Subject: Re: [PATCH v4 0/4] tracing: tweaks for generic syscall events Message-ID: <20090825134203.GC6114@nowhere> References: <1250917125-6174-1-git-send-email-jistone@redhat.com> <1251150194-1713-1-git-send-email-jistone@redhat.com> <20090824230509.GB5124@nowhere> <20090825102858.GB19941@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090825102858.GB19941@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2009 at 12:28:58PM +0200, Ingo Molnar wrote: > > * Frederic Weisbecker wrote: > > > On Mon, Aug 24, 2009 at 02:43:10PM -0700, Josh Stone wrote: > > > This patch series moves the callbacks for the syscall tracepoints to the > > > definition site, and adds generic TRACE_EVENTs which capture all syscall > > > arguments. > > > > > > New in v3: > > > - Give the thread flag a more generic name: TIF_SYSCALL_TRACEPOINT. > > > - Move the regfuncs to arch-specific files, per Jason's suggestion. > > > - Change _WITH_CALLBACK to just _FN, per Ingo's suggestion. > > > > > > New in v4: > > > - Give the config flag a more generic name: HAVE_SYSCALL_TRACEPOINTS. > > > - Undo the arch reorg of the regfuncs, but conditionalize on above. > > > > > > > > > Sample trace output: > > > sendmail-974 [000] 55665.464492: sys_enter: NR 14 (1, 7fff60f3af40, 7fff60f3aec0, 8, 0, 7fb1b6a05161) > > > > > > sendmail-974 [000] 55665.464496: sys_exit: NR 14 = 0 > > > > > > sendmail-974 [000] 55665.464507: sys_enter: NR 23 (5, 7fff60f3b0d0, 0, 0, 7fff60f3b150, 7fff60f3ef01) > > > > > > sshd-978 [000] 55667.845359: sys_exit: NR 23 = 1 > > > > > > sshd-978 [000] 55667.845373: sys_enter: NR 14 (0, 7fffc645ce90, 7fffc645cf10, 8, 0, 101010101010101) > > > > > > sshd-978 [000] 55667.845381: sys_exit: NR 14 = 0 > > > > > > sshd-978 [000] 55667.845383: sys_enter: NR 14 (2, 7fffc645cf10, 0, 8, 0, 101010101010101) > > > > > > sshd-978 [000] 55667.845386: sys_exit: NR 14 = 0 > > > > > > sshd-978 [000] 55667.845395: sys_enter: NR 0 (3, 7fffc6458f80, 4000, 1, 0, 0) > > > > > > sshd-978 [000] 55667.845478: sys_exit: NR 0 = 48 > > > > > > > > > Signed-off-by: Josh Stone > > > Cc: Jason Baron > > > Cc: Frederic Weisbecker > > > Cc: Ingo Molnar > > > Cc: Li Zefan > > > Cc: Steven Rostedt > > > Cc: Peter Zijlstra > > > Cc: Mathieu Desnoyers > > > Cc: Jiaying Zhang > > > Cc: Martin Bligh > > > Cc: Lai Jiangshan > > > Cc: Paul Mundt > > > > > > Acked-by: Frederic Weisbecker > > How about compat syscalls? If we touch this code we better cover > them as well. > > Ingo They should be covered by these generic tracepoint I guess. The remaining bits that are necessary to cover individual compat syscall tracepoints are the missing DEFINE_SYSCALL() uses in fs/compat.c Is someone willing to cover them? Thanks, Frederic.