From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: how to get a kernel callgraph starting from a syscall Date: Thu, 21 Apr 2011 09:23:31 -0600 Message-ID: <4DB04BF3.8080206@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pw0-f46.google.com ([209.85.160.46]:64651 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754456Ab1DUPXh (ORCPT ); Thu, 21 Apr 2011 11:23:37 -0400 Received: by pwi15 with SMTP id 15so924816pwi.19 for ; Thu, 21 Apr 2011 08:23:37 -0700 (PDT) In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Francis Moreau Cc: linux-perf-users@vger.kernel.org On 04/21/11 01:46, Francis Moreau wrote: > Hello, > > Sorry if the question is dumb but I'm a bit lost about this. > > I know that ftrace exists but I think that perf can do this too: I > have a userspace application which is calling a libc C function (read) > which ends up doing a sys_read. > > For the sys_read, I'd like to see what's happening in the kernel by > displaying the call graph. > > Can perf do that ? Have you tried 'perf record -g'? David > > If so, would it be possible to point me out the perf command to use ? > > Thanks