public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question
@ 2016-11-30 10:51 Jiri Olsa
  2016-11-30 14:45 ` Liang, Kan
  2016-11-30 15:27 ` Liang, Kan
  0 siblings, 2 replies; 11+ messages in thread
From: Jiri Olsa @ 2016-11-30 10:51 UTC (permalink / raw)
  To: Liang, Kan
  Cc: Andi Kleen, Peter Zijlstra, Jiri Olsa, lkml, Ingo Molnar,
	Michael Petlan

hi,
I'm trying to find out some documentation background for this part of uncore code:

---
static int uncore_pmu_event_init(struct perf_event *event)
{
        ...
        if (event->attr.config == UNCORE_FIXED_EVENT) {
                /* no fixed counter */
                if (!pmu->type->fixed_ctl)
                        return -EINVAL;
                /*
                 * if there is only one fixed counter, only the first pmu
                 * can access the fixed counter
                 */
                if (pmu->type->single_fixed && pmu->pmu_idx > 0)
                        return -EINVAL;
        ...
---

that for some uncore types (those with pmu->type->single_fixed) only
the first pmu (code_id == 0) will allow to touch the clocktick event

other cores boxes will not allow to open clocktick event, eventhough
it's announced via /sys/../events/.. 

I'm probably missing some HW logic of specific boxes that would explain
that, but I can't find it.

thanks for info,
jirka

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

end of thread, other threads:[~2017-01-16 13:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 10:51 [RFC] perf/x86/intel/uncore: pmu->type->single_fixed question Jiri Olsa
2016-11-30 14:45 ` Liang, Kan
2016-11-30 17:52   ` Andi Kleen
2016-12-01 16:34     ` Liang, Kan
2016-12-01 16:37       ` Peter Zijlstra
2016-12-12 14:49         ` Liang, Kan
2016-12-14 11:33           ` Jiri Olsa
2016-12-20 18:05             ` Liang, Kan
2017-01-16 13:15               ` Liang, Kan
2016-11-30 15:27 ` Liang, Kan
2016-11-30 15:38   ` Jiri Olsa

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