mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf, how to support multiple x86 hw pmus?
@ 2010-08-16  8:09 Lin Ming
  2010-08-16  8:25 ` Peter Zijlstra
  0 siblings, 1 reply; 5+ messages in thread
From: Lin Ming @ 2010-08-16  8:09 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: linux-kernel, Ingo Molnar, Robert Richter, Frederic Weisbecker,
	Don Zickus, Cyrill Gorcunov, arjan, Fu, Michael

Hi, all

Here multiple x86 hw pmus means, for example, Intel "core" and "uncore"
pmu. "core" pmu is to collect per cpu data, cpu-cycles, branch-misses,
etc. "uncore" pmu is to collect per package data, L3 cache, Intel QPI,
integrated memory controller, etc.

I am going to add Intel uncore pmu support to perf. To reduce code
duplicate, "uncore" pmu should reuse most of the "core" pmu code. But
currently, the x86 core pmu code(arch/x86/kernel/cpu/perf_event.c) only
supports one pmu, with a definition as below.

static struct x86_pmu x86_pmu __read_mostly;

Many functions use above global definition "x86_pmu". It seems to me
that we need to re-structure x86 pmu code to support multiple hw pmus.

Any idea?

Thanks,
Lin Ming


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-16  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-16  8:09 perf, how to support multiple x86 hw pmus? Lin Ming
2010-08-16  8:25 ` Peter Zijlstra
2010-08-16  8:39   ` Lin Ming
2010-08-16  9:12     ` Peter Zijlstra
2010-08-16  9:33       ` Lin Ming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome