On Thu, Nov 06, 2014 at 09:58:05AM -0500, [email protected] wrote:

SNIP

>                   (sample_type & PERF_SAMPLE_STACK_USER))
>                       callchain_param.record_mode = CALLCHAIN_DWARF;
> +             else if (sample_type & PERF_SAMPLE_BRANCH_STACK)
> +                     callchain_param.record_mode = CALLCHAIN_LBR;
>               else
>                       callchain_param.record_mode = CALLCHAIN_FP;
>       }
> diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c
> index 0022980..72ed39b 100644
> --- a/tools/perf/util/callchain.c
> +++ b/tools/perf/util/callchain.c
> @@ -97,6 +97,14 @@ int parse_callchain_record_opt(const char *arg)
>                               callchain_param.dump_size = size;
>                       }
>  #endif /* HAVE_DWARF_UNWIND_SUPPORT */
> +             } else if (!strncmp(name, "lbr", sizeof("lbr"))) {
> +                     if (!strtok_r(NULL, ",", &saveptr)) {
> +                             callchain_param.record_mode = CALLCHAIN_LBR;
> +                             ret = 0;
> +                     } else
> +                             pr_err("callchain: No more arguments "
> +                                     "needed for -g lbr\n");

should it be 'needed for --call-graph' option?   ^^^^^^^^^^^

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to