mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kan.liang@intel.com
Cc: kbuild-all@01.org, peterz@infradead.org, acme@kernel.org,
	eranian@google.com, ak@linux.intel.com, jolsa@kernel.org,
	namhyung@kernel.org, linux-kernel@vger.kernel.org,
	Kan Liang <kan.liang@intel.com>
Subject: Re: [PATCH V2 1/8] perf: Add PERF_SAMPLE_PHYS_ADDR
Date: Fri, 8 Jan 2016 05:08:46 +0800	[thread overview]
Message-ID: <201601080500.jMVeybPa%fengguang.wu@intel.com> (raw)
In-Reply-To: <1452173440-10697-1-git-send-email-kan.liang@intel.com>

[-- Attachment #1: Type: text/plain, Size: 2115 bytes --]

Hi Kan,

[auto build test WARNING on tip/perf/core]
[also build test WARNING on v4.4-rc8 next-20160107]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/kan-liang-intel-com/perf-Add-PERF_SAMPLE_PHYS_ADDR/20160108-045715
config: i386-tinyconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   arch/x86/kernel/cpu/perf_event_intel_ds.c: In function 'setup_pebs_sample_data':
>> arch/x86/kernel/cpu/perf_event_intel_ds.c:1087:41: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
        data->phys_addr = (u64)virt_to_phys((void *)data->addr);
                                            ^

vim +1087 arch/x86/kernel/cpu/perf_event_intel_ds.c

  1071			regs->ip = pebs->real_ip;
  1072			regs->flags |= PERF_EFLAGS_EXACT;
  1073		} else if (event->attr.precise_ip > 1 && intel_pmu_pebs_fixup_ip(regs))
  1074			regs->flags |= PERF_EFLAGS_EXACT;
  1075		else
  1076			regs->flags &= ~PERF_EFLAGS_EXACT;
  1077	
  1078		if ((sample_type & PERF_SAMPLE_ADDR) &&
  1079		    x86_pmu.intel_cap.pebs_format >= 1)
  1080			data->addr = pebs->dla;
  1081	
  1082		if ((sample_type & PERF_SAMPLE_PHYS_ADDR) && (data->addr != 0)) {
  1083			if (data->addr >= TASK_SIZE) {
  1084				/* If it's vmalloc()d memory, leave phys_addr as 0 */
  1085				if (virt_addr_valid(data->addr) &&
  1086				    !(data->addr >= VMALLOC_START && data->addr < VMALLOC_END))
> 1087					data->phys_addr = (u64)virt_to_phys((void *)data->addr);
  1088			} else {
  1089				/*
  1090				 * Walking the pages tables for user address.
  1091				 * Interrupts are disabled, so it prevents any tear down
  1092				 * of the page tables.
  1093				 * Try IRQ-safe __get_user_pages_fast first.
  1094				 * If failed, leave phys_addr as 0.
  1095				 */

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 6098 bytes --]

  parent reply	other threads:[~2016-01-07 21:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-07 13:30 kan.liang
2016-01-07 13:30 ` [PATCH V2 2/8] perf tools: add option to record sample physical address kan.liang
2016-01-07 13:30 ` [PATCH V2 3/8] perf tools: add sort option phys_daddr kan.liang
2016-01-07 13:30 ` [PATCH V2 4/8] perf mem: add option phys-data to record physical address kan.liang
2016-01-07 13:30 ` [PATCH V2 5/8] perf mem: report physical addresses kan.liang
2016-01-07 13:30 ` [PATCH V2 6/8] perf mem: dump " kan.liang
2016-01-07 13:30 ` [PATCH V2 7/8] perf script: support physical addresses in script kan.liang
2016-01-07 13:30 ` [PATCH V2 8/8] perf test: add test case for PERF_SAMPLE_PHYS_ADDR kan.liang
2016-01-07 21:08 ` kbuild test robot [this message]
2016-01-07 21:22 ` [PATCH V2 1/8] perf: Add PERF_SAMPLE_PHYS_ADDR kbuild test robot
2016-01-19 16:30 ` Peter Zijlstra

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=201601080500.jMVeybPa%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=acme@kernel.org \
    --cc=ak@linux.intel.com \
    --cc=eranian@google.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.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®