From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757656AbaGWOJS (ORCPT ); Wed, 23 Jul 2014 10:09:18 -0400 Received: from mail.kernel.org ([198.145.19.201]:44821 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757115AbaGWOJP (ORCPT ); Wed, 23 Jul 2014 10:09:15 -0400 Date: Wed, 23 Jul 2014 11:09:08 -0300 From: Arnaldo Carvalho de Melo To: Adrian Hunter Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, David Ahern , Frederic Weisbecker , Jiri Olsa , Namhyung Kim , Paul Mackerras , Stephane Eranian Subject: Re: [PATCH 05/41] perf tools: Identify which comms are from exec Message-ID: <20140723140908.GK20303@kernel.org> References: <1405332185-4050-1-git-send-email-adrian.hunter@intel.com> <1405332185-4050-6-git-send-email-adrian.hunter@intel.com> <20140714203237.GA18133@kernel.org> <53C513CC.1010202@intel.com> <20140723140752.GJ20303@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140723140752.GJ20303@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Jul 23, 2014 at 11:07:52AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Jul 15, 2014 at 02:43:08PM +0300, Adrian Hunter escreveu: > > >> @@ -106,6 +107,8 @@ int comm__override(struct comm *comm, const char *str, u64 timestamp) > > >> comm_str__put(old); > > >> comm->comm_str = new; > > >> comm->start = timestamp; > > >> + if (exec && !comm->exec) > > >> + comm->exec = true; > > > > Why do you need the !comm->exec test? > > > Dunno > > I saw that you kept it in the last patchkit submitted, I'll just drop > it, needless obfuscation. Also why do you need to "identify which comms are from exec", was it good for? - Arnaldo