Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756108AbdDHAwl (ORCPT ); Fri, 7 Apr 2017 20:52:41 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33045 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbdDHAwc (ORCPT ); Fri, 7 Apr 2017 20:52:32 -0400 From: Taeung Song To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Taeung Song Subject: [PATCH v2 0/5] Refactoring with ltrim() and rtrim() Date: Sat, 8 Apr 2017 09:52:23 +0900 Message-Id: <1491612748-1605-1-git-send-email-treeze.taeung@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 33 Hi, :) It is to simply refactor the code about stip strings with ltrim() and rtrim(). I'd appreciate some feedback on this PATCHset. The code is avaiable at 'refactor-trim-v2' branch in git://github.com/taeung/linux-perf Thanks, Taeung v2: - remove changes unrelated to the main purpose of PATCH (Arnaldo) Taeung Song (5): perf annotate: Refactor the code to parse disassemble lines with {l,r}trim() perf annotate: Use stripped line instead of raw disassemble line perf ui browser: Refactor the code to parse color configs with ltrim() perf pmu: Refactor wordwrap() with ltrim() perf tools: Refactor the code to strip command name with {l,r}trim() tools/perf/ui/browser.c | 2 +- tools/perf/util/annotate.c | 46 +++++++++------------------------------------- tools/perf/util/event.c | 11 ++--------- tools/perf/util/pmu.c | 3 +-- 4 files changed, 13 insertions(+), 49 deletions(-) -- 2.7.4