Messages in this thread | | | Date | Thu, 12 Mar 2020 11:51:03 +0100 | From | Jiri Olsa <> | Subject | Re: [PATCH v4 6/8] perf/tools: Enhance JSON/metric infrastructure to handle "?" |
| |
On Mon, Mar 09, 2020 at 11:55:50AM +0530, Kajol Jain wrote:
SNIP
> diff --git a/tools/perf/util/expr.l b/tools/perf/util/expr.l > index 1928f2a3dddc..ec4b00671f67 100644 > --- a/tools/perf/util/expr.l > +++ b/tools/perf/util/expr.l > @@ -45,6 +45,21 @@ static char *normalize(char *str) > *dst++ = '/'; > else if (*str == '\\') > *dst++ = *++str; > + else if (*str == '?') { > +
extra line ^^^
jirka
> + int size = snprintf(NULL, 0, "%d", expr__runtimeparam); > + char * paramval = (char *)malloc(size); > + int i = 0; > + > + if(!paramval)
SNIP
| |