Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbdDIFhI (ORCPT ); Sun, 9 Apr 2017 01:37:08 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36482 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbdDIFhA (ORCPT ); Sun, 9 Apr 2017 01:37:00 -0400 Subject: Re: [PATCH v2 5/5] perf tools: Refactor the code to strip command name with {l,r}trim() To: David Ahern , Arnaldo Carvalho de Melo References: <1491612748-1605-1-git-send-email-treeze.taeung@gmail.com> <1491612748-1605-6-git-send-email-treeze.taeung@gmail.com> Cc: linux-kernel@vger.kernel.org, Don Zickus , Jiri Olsa , Namhyung Kim From: Taeung Song Message-ID: <0a8f5343-25ab-8c58-ddc7-1217e4f1a0ed@gmail.com> Date: Sun, 9 Apr 2017 14:36:56 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 642 Lines: 24 Hi David, On 04/09/2017 03:48 AM, David Ahern wrote: > On 4/7/17 8:52 PM, Taeung Song wrote: >> After reading command name from /proc//status, >> use ltrim() and rtrim() to strip command name, not using >> just while loop, isspace() and etc. >> >> Cc: David Ahern >> Cc: Don Zickus >> Cc: Jiri Olsa >> Cc: Namhyung Kim >> Signed-off-by: Taeung Song >> --- >> tools/perf/util/event.c | 11 ++--------- >> 1 file changed, 2 insertions(+), 9 deletions(-) >> > > Acked-by: David Ahern > Thank you! - Taeung