Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752508AbdDHSs4 (ORCPT ); Sat, 8 Apr 2017 14:48:56 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33594 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbdDHSss (ORCPT ); Sat, 8 Apr 2017 14:48:48 -0400 Subject: Re: [PATCH v2 5/5] perf tools: Refactor the code to strip command name with {l,r}trim() To: Taeung Song , 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: David Ahern Message-ID: Date: Sat, 8 Apr 2017 14:48:43 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1491612748-1605-6-git-send-email-treeze.taeung@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 546 Lines: 16 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