Re: [PATCH v2 5/5] perf tools: Refactor the code to strip command name with {l,r}trim()

2017-04-08 Thread Taeung Song
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 Ki

Re: [PATCH v2 5/5] perf tools: Refactor the code to strip command name with {l,r}trim()

2017-04-08 Thread David Ahern
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 > --- >

[PATCH v2 5/5] perf tools: Refactor the code to strip command name with {l,r}trim()

2017-04-07 Thread Taeung Song
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