Re: [perfmon2] [PATCH] perf_examples/task: Fixed problem with option processing

2010-05-26 Thread stephane eranian
Patch applied and extended to other programs which fork/exec external commands. Thanks. On Wed, May 26, 2010 at 12:33 AM, Corey Ashford wrote: > Fix a bug with processing the options to the program > being measured were consumed as options to task itself. > > For example: > > task -e PM_RUN_CYC

[perfmon2] [PATCH] perf_examples/task: Fixed problem with option processing

2010-05-25 Thread Corey Ashford
Fix a bug with processing the options to the program being measured were consumed as options to task itself. For example: task -e PM_RUN_CYC /bin/ls -l was being interpreted by getopt() as: task -e PM_RUN_CYC -l /bin/ls and task didn't understand the -l option. According to the getopt() man p