[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200306141011.GB290743@krava>
Date: Fri, 6 Mar 2020 15:10:11 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Namhyung Kim <namhyung@...nel.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Stephane Eranian <eranian@...gle.com>,
LKML <linux-kernel@...r.kernel.org>,
linux-perf-users@...r.kernel.org
Subject: Re: [PATCH 06/10] perf report: Add 'cgroup' sort key
On Mon, Feb 24, 2020 at 01:37:45PM +0900, Namhyung Kim wrote:
SNIP
> @@ -634,6 +637,39 @@ struct sort_entry sort_cgroup_id = {
> .se_width_idx = HISTC_CGROUP_ID,
> };
>
> +/* --sort cgroup */
> +
> +static int64_t
> +sort__cgroup_cmp(struct hist_entry *left, struct hist_entry *right)
> +{
> + return right->cgroup - left->cgroup;
> +}
> +
> +static int hist_entry__cgroup_snprintf(struct hist_entry *he,
> + char *bf, size_t size,
> + unsigned int width __maybe_unused)
> +{
> + const char *cgrp_name = "N/A";
> +
> + if (he->cgroup) {
> + struct cgroup *cgrp = cgroup__find(he->ms.maps->machine->env,
eveything is connected :)) great that this one works
jirka
Powered by blists - more mailing lists