27 Jun 2012 23:17
[PATCH] Make operf use OP_BINDIR when invoking ophelp
Maynard Johnson <maynardj <at> us.ibm.com>
2012-06-27 21:17:49 GMT
2012-06-27 21:17:49 GMT
[PATCH] Make operf use OP_BINDIR when invoking ophelp This patch prevents the problem Suravee and Andi reported using operf. The patch has been pushed to the perf-events branch already. Signed-off-by: Maynard Johnson<maynardj <at> us.ibm.com> --- pe_profiling/operf.cpp | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pe_profiling/operf.cpp b/pe_profiling/operf.cpp index ff9334b..590e121 100644 --- a/pe_profiling/operf.cpp +++ b/pe_profiling/operf.cpp <at> <at> -15,6 +15,8 <at> <at> * */ +#include "config.h" + #include<stdio.h> #include<stdlib.h> #include<getopt.h> <at> <at> -981,7 +983,8 <at> <at> static u32 _get_event_code(char name[]) FILE * fp; char oprof_event_code[9]; string command; - command = "ophelp "; + command = OP_BINDIR; + command += "/ophelp ";(Continue reading)
RSS Feed