linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Song Liu <songliubraving@fb.com>
To: "Liang, Kan" <kan.liang@linux.intel.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: perf/x86/intel/uncore
Date: Fri, 25 Jan 2019 22:45:59 +0000	[thread overview]
Message-ID: <FCF1C89B-A854-4C36-8FBC-7E7A19DA2676@fb.com> (raw)
In-Reply-To: <b2f5eaf7-066a-0492-a5fe-e4cc9b1161d0@linux.intel.com>



> On Jan 25, 2019, at 2:42 PM, Liang, Kan <kan.liang@linux.intel.com> wrote:
> 
> 
> 
> On 1/25/2019 5:24 PM, Song Liu wrote:
>> I also noticed that uncore_pci_probe() returns at
>>         if (atomic_inc_return(&pmu->activeboxes) > 1)
>>                 return 0;
>> for bus 1-7. So we only probed bus 0 (socket 0). Is this expected behavior?
> 
> We probed all, but only need to register PMU once.
> It can be distinguished by cpumask. E.g. you may want to check "/sys/devices/uncore_imc_0/cpumask".
> 
> 
> Thanks,
> Kan

I see. That works:

[root@rtptest10787.snc1 /sys/bus/event_source/devices/uncore_imc_0]# cat cpumask
0,28,56,84,112,140,168,196

I think this solves all the problems. 

Thanks again!
Song

      reply	other threads:[~2019-01-25 22:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-25 18:54 perf/x86/intel/uncore Song Liu
2019-01-25 20:08 ` perf/x86/intel/uncore Liang, Kan
2019-01-25 20:16   ` perf/x86/intel/uncore Song Liu
2019-01-25 21:35     ` perf/x86/intel/uncore Liang, Kan
2019-01-25 22:24       ` perf/x86/intel/uncore Song Liu
2019-01-25 22:42         ` perf/x86/intel/uncore Liang, Kan
2019-01-25 22:45           ` Song Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FCF1C89B-A854-4C36-8FBC-7E7A19DA2676@fb.com \
    --to=songliubraving@fb.com \
    --cc=kan.liang@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).