Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753732AbbETSAg (ORCPT ); Wed, 20 May 2015 14:00:36 -0400 Received: from smtprelay0221.hostedemail.com ([216.40.44.221]:40935 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752759AbbETSAf (ORCPT ); Wed, 20 May 2015 14:00:35 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1963:2393:2553:2559:2562:2892:3138:3139:3140:3141:3142:3353:3622:3865:3867:3868:3871:3872:3874:4321:4605:5007:6119:6261:7774:7875:10004:10400:10562:10848:10967:11026:11217:11232:11658:11914:12517:12519:12555:12663:12740:13069:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: fact72_78e0c74c55743 X-Filterd-Recvd-Size: 2164 Date: Wed, 20 May 2015 14:00:29 -0400 From: Steven Rostedt To: Josef Bacik Cc: , Subject: Re: [PATCH 3/5] trace-cmd: lookup syscall names in profile Message-ID: <20150520140029.2078359f@gandalf.local.home> In-Reply-To: <1431113344-22579-4-git-send-email-jbacik@fb.com> References: <1431113344-22579-1-git-send-email-jbacik@fb.com> <1431113344-22579-4-git-send-email-jbacik@fb.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; 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 Content-Length: 1509 Lines: 39 On Fri, 8 May 2015 15:29:02 -0400 Josef Bacik wrote: > When we profile syscall times we're just given the syscall number, not the name. > This isn't helpful for human beings, so lookup the syscall names when we are > printing out the information. This uses the audit library to get this > information, I'm not married to it, but it seems that any app that does this > mapping has to scrape /usr/include/asm/unistd*.h to pull out the names, so might > as well just use somebody elses work. > > Signed-off-by: Josef Bacik > --- > Makefile | 2 +- > trace-profile.c | 19 ++++++++++++++++--- > 2 files changed, 17 insertions(+), 4 deletions(-) > > diff --git a/Makefile b/Makefile > index 63f7e79..402f711 100644 > --- a/Makefile > +++ b/Makefile > @@ -160,7 +160,7 @@ bindir_relative_SQ = $(subst ','\'',$(bindir_relative)) > plugin_dir_SQ = $(subst ','\'',$(plugin_dir)) > python_dir_SQ = $(subst ','\'',$(python_dir)) > > -LIBS = -L. -ltracecmd -ldl > +LIBS = -L. -ltracecmd -ldl -laudit This fails to compile for me because I don't have a audit-libs-devel installed. I'll keep this as is, but I'm going to add code to check for this library, and go back to the default raw numbers if it doesn't exist. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/