Skip to content

Refactoring with ltrim() and rtrim()

Taeung Song lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 7 repliesApplied

Changes in v2 from the cover letter

- remove changes unrelated to the main purpose of PATCH (Arnaldo)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf annotate: Refactor the code to parse disassemble lines with {l,r}trim()tools/perf/util/annotate.c+7 -350 replies
2/5perf annotate: Use stripped line instead of raw disassemble linetools/perf/util/annotate.c+2 -20 replies
3/5perf ui browser: Refactor the code to parse color configs with ltrim()tools/perf/ui/browser.c+1 -10 replies
4/5perf pmu: Refactor wordwrap() with ltrim()tools/perf/util/pmu.c+1 -20 replies
5/5perf tools: Refactor the code to strip command name with {l,r}trim()tools/perf/util/event.c+2 -92 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchDavid Ahern
1/5
2/5
3/5
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Refactoring with ltrim() and rtrim()

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(-)
Signature · 1 line
2.7.4