[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YOhGU0PZPSVb1s0n@kernel.org>
Date: Fri, 9 Jul 2021 09:51:31 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Namhyung Kim <namhyung@...nel.org>
Cc: "Liang, Kan" <kan.liang@...el.com>, Ingo Molnar <mingo@...hat.com>,
Jiri Olsa <jolsa@...hat.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
Yao Jin <yao.jin@...ux.intel.com>,
Kan Liang <kan.liang@...ux.intel.com>
Subject: Re: [PATCH] perf record: Add a dummy event for a hybrid system
Em Thu, Jul 08, 2021 at 10:32:13PM -0700, Namhyung Kim escreveu:
> On Thu, Jul 8, 2021 at 9:05 AM <kan.liang@...el.com> wrote:
> >
> > From: Kan Liang <kan.liang@...ux.intel.com>
> >
> > Some symbols may not be resolved if a user only monitor one type of PMU.
> >
> > $ sudo perf record -e cpu_atom/branch-instructions/ ./big_small_workload
> > $ sudo perf report –stdio
> > # Overhead Command Shared Object Symbol
> > # ........ ......... .................
> > # ......................................
> > #
> > 28.02% perf-exec [unknown] [.] 0x0000000000401cf6
> > 11.32% perf-exec [unknown] [.] 0x0000000000401d04
> > 10.90% perf-exec [unknown] [.] 0x0000000000401d11
> > 10.61% perf-exec [unknown] [.] 0x0000000000401cfc
> >
> > To parse symbols, the side-band events, e.g., COMM, which are generated
> > by the kernel are required. To decide whether to generate the side-band
> > event, the kernel relies on the event_filter_match() to filter the
> > unrelated events. On a hybrid system, the event_filter_match() further
> > checks the CPU mask of the current enabled PMU. If an event is collected
> > on the CPU which doesn't have an enabled PMU, it's treated as an
> > unrelated event.
> >
> > The "big_small_workload" is created in a big core, but runs on a small
> > core. The side-band events are filtered, because the user only monitors
> > the PMU of the small core. The big core PMU is not enabled.
> >
> > For a hybrid system, a dummy event is required to generate the complete
> > side-band events.
> >
> > Signed-off-by: Kan Liang <kan.liang@...ux.intel.com>
>
> Acked-by: Namhyung Kim <namhyung@...nel.org>
Thanks, applied.
- Arnaldo
Powered by blists - more mailing lists