Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S972988AbdDXQHC (ORCPT ); Mon, 24 Apr 2017 12:07:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52946 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S972867AbdDXQGy (ORCPT ); Mon, 24 Apr 2017 12:06:54 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A34423DE3E Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jolsa@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com A34423DE3E Date: Mon, 24 Apr 2017 18:06:45 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , David Ahern , Namhyung Kim , Peter Zijlstra , Taeung Song , Jin Yao , lkml , Ingo Molnar Subject: Re: [PATCH perf/urgent] perf tools: Fix the code to strip command name Message-ID: <20170424160645.GA4120@krava> References: <20170420092430.29657-1-jolsa@kernel.org> <20170424154450.GB2742@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170424154450.GB2742@kernel.org> User-Agent: Mutt/1.8.0 (2017-02-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 24 Apr 2017 16:06:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 27 On Mon, Apr 24, 2017 at 12:44:50PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Apr 20, 2017 at 11:24:30AM +0200, Jiri Olsa escreveu: > > Recent commit broke command name strip in perf_event__get_comm_ids > > function. It replaced left to right search for '\n' with rtrim, > > which actually does right to left search. It occasionally caught > > earlier '\n' and kept trash in the command name. > > > > Keeping the ltrim, but moving back the left to right '\n' search > > instead of the rtrim. > > perf/urgent? > > > Fixes: bdd97ca63faa ("perf tools: Refactor the code to strip command name with {l,r}trim()") > > [acme@jouet linux]$ git tag --contains bdd97ca63faa > perf-core-for-mingo-4.12-20170411 > perf-core-for-mingo-4.12-20170413 > perf-core-for-mingo-4.12-20170419 > [acme@jouet linux]$ > > It is just in tip/perf/core, will put in acme/perf/core and push to Ingo > in my next pull req. sure, I did not check.. just thought it's urgent from time POV ;-) thanks, jirka