Re: [PATCH v14 09/19] perf, tools: Support alias descriptions

From: Jiri Olsa
Date: Fri Jun 05 2015 - 06:21:35 EST


On Thu, Jun 04, 2015 at 11:27:17PM -0700, Sukadev Bhattiprolu wrote:

SNIP

> ---
> tools/perf/util/pmu.c | 80 +++++++++++++++++++++++++++++++++++++++----------
> tools/perf/util/pmu.h | 1 +
> 2 files changed, 66 insertions(+), 15 deletions(-)
>
> diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
> index 7863d05..e377598 100644
> --- a/tools/perf/util/pmu.c
> +++ b/tools/perf/util/pmu.c
> @@ -241,6 +241,8 @@ static int __perf_pmu__new_alias(struct list_head *list, char *dir, char *name,

nit, no need for __maybe_unused for 'desc' arg

jirka
> perf_pmu__parse_snapshot(alias, dir, name);
> }
>
> + alias->desc = desc ? strdup(desc) : NULL;
> +
> list_add_tail(&alias->list, list);
>
> return 0;
> @@ -989,11 +991,42 @@ static char *format_alias_or(char *buf, int len, struct perf_pmu *pmu,
> return buf;

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