From: kbuild test robot <lkp@intel.com>
To: Matt Redfearn <matt.redfearn@mips.com>
Cc: kbuild-all@01.org, James Hogan <jhogan@kernel.org>,
Ralf Baechle <ralf@linux-mips.org>,
linux-mips@linux-mips.org, Matt Redfearn <matt.redfearn@mips.com>,
Namhyung Kim <namhyung@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
Jiri Olsa <jolsa@redhat.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: Re: [PATCH 3/5] MIPS: perf: Fix perf with MT counting other threads
Date: Wed, 4 Apr 2018 03:49:15 +0800 [thread overview]
Message-ID: <201804040345.aHF5idm0%fengguang.wu@intel.com> (raw)
In-Reply-To: <1522758691-17003-4-git-send-email-matt.redfearn@mips.com>
[-- Attachment #1: Type: text/plain, Size: 3092 bytes --]
Hi Matt,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/perf/core]
[also build test ERROR on v4.16 next-20180403]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Matt-Redfearn/MIPS-perf-MT-fixes-and-improvements/20180404-011026
config: mips-gpr_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=mips
All errors (new ones prefixed by >>):
arch/mips/kernel/perf_event_mipsxx.c: In function 'mipsxx_pmu_enable_event':
>> arch/mips/kernel/perf_event_mipsxx.c:343:22: error: expected expression before ')' token
} else if (range > V) {
^
arch/mips/kernel/perf_event_mipsxx.c: In function 'mipspmu_perf_event_encode':
>> arch/mips/kernel/perf_event_mipsxx.c:675:28: error: 'const struct mips_perf_event' has no member named 'range'
return ((unsigned int)pev->range << 24) |
^~
vim +343 arch/mips/kernel/perf_event_mipsxx.c
325
326 static void mipsxx_pmu_enable_event(struct hw_perf_event *evt, int idx)
327 {
328 struct perf_event *event = container_of(evt, struct perf_event, hw);
329 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
330 unsigned int range = evt->event_base >> 24;
331
332 WARN_ON(idx < 0 || idx >= mipspmu.num_counters);
333
334 cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base & 0xff) |
335 (evt->config_base & M_PERFCTL_CONFIG_MASK) |
336 /* Make sure interrupt enabled. */
337 MIPS_PERFCTRL_IE;
338
339 if (IS_ENABLED(CONFIG_CPU_BMIPS5000)) {
340 /* enable the counter for the calling thread */
341 cpuc->saved_ctrl[idx] |=
342 (1 << (12 + vpe_id())) | BRCM_PERFCTRL_TC;
> 343 } else if (range > V) {
344 /* The counter is processor wide. Set it up to count all TCs. */
345 pr_debug("Enabling perf counter for all TCs\n");
346 cpuc->saved_ctrl[idx] |= M_TC_EN_ALL;
347 } else {
348 unsigned int cpu, ctrl;
349
350 /*
351 * Set up the counter for a particular CPU when event->cpu is
352 * a valid CPU number. Otherwise set up the counter for the CPU
353 * scheduling this thread.
354 */
355 cpu = (event->cpu >= 0) ? event->cpu : smp_processor_id();
356
357 ctrl = M_PERFCTL_VPEID(cpu_vpe_id(&cpu_data[cpu]));
358 ctrl |= M_TC_EN_VPE;
359 cpuc->saved_ctrl[idx] |= ctrl;
360 pr_debug("Enabling perf counter for CPU%d\n", cpu);
361 }
362 /*
363 * We do not actually let the counter run. Leave it until start().
364 */
365 }
366
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 19550 bytes --]
next prev parent reply other threads:[~2018-04-03 19:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-03 12:31 [PATCH 0/5] MIPS: perf: MT fixes and improvements Matt Redfearn
2018-04-03 12:31 ` [PATCH 1/5] MIPS: perf: More robustly probe for the presence of per-tc counters Matt Redfearn
2018-04-03 12:31 ` [PATCH 2/5] MIPS: perf: Use correct VPE ID when setting up VPE tracing Matt Redfearn
2018-04-03 12:31 ` [PATCH 3/5] MIPS: perf: Fix perf with MT counting other threads Matt Redfearn
2018-04-03 19:49 ` kbuild test robot [this message]
2018-04-03 12:31 ` [PATCH 4/5] MIPS: perf: Allocate per-core counters on demand Matt Redfearn
2018-04-03 20:34 ` kbuild test robot
2018-04-03 12:31 ` [PATCH 5/5] MIPS: perf: Fold vpe_id() macro into it's one last usage Matt Redfearn
2018-04-03 20:57 ` kbuild test robot
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=201804040345.aHF5idm0%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=jhogan@kernel.org \
--cc=jolsa@redhat.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=matt.redfearn@mips.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=ralf@linux-mips.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
all inboxes | Powered by JetHome®