From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF72711725; Sun, 8 Oct 2023 19:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ou+PosWm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696795099; x=1728331099; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cKwxlSWZrewmQgKrJB6brf7XXi0sqVpTNLHHsR9nXbk=; b=Ou+PosWmcK1D22k4oNyOjzJFGvJmqdXBiBCwqFrHD7G/WdLHokd39SF3 RmWW+rEcyB6/p76Ggi3J645Q9vxNdkV02uBFqzfollJamLxdBfcOI8HRr 9lP4OTikHimihd1OvKnrNUsBfpwfjw+TtDoJz7l8iHg/KBKuSRPucgwjZ eMQWFZ5QNieRgiqTyfLK7+YC8KqTb/IjjFYYqWSYi/0j/Q9RX1di1Xj6E PeSC/T/we/mjkUDh4a5upTkmcLGcOJhoWkTD2s3XaE5Jfl5FprA7sgh// fikpGicmuP4UHO2zw2u+47Rongdj5jyKCeRCv3tTOK+/C9qrBO3beIULj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="415019064" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="415019064" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2023 12:58:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="869002523" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="869002523" Received: from lkp-server01.sh.intel.com (HELO 8a3a91ad4240) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 08 Oct 2023 12:58:13 -0700 Received: from kbuild by 8a3a91ad4240 with local (Exim 4.96) (envelope-from ) id 1qpZul-0005hz-1T; Sun, 08 Oct 2023 19:58:11 +0000 Date: Mon, 9 Oct 2023 03:57:51 +0800 From: kernel test robot To: Tianyi Liu , seanjc@google.com, pbonzini@redhat.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, Tianyi Liu Subject: Re: [PATCH v2 4/5] perf kvm: Support sampling guest callchains Message-ID: <202310090338.4PmYjmBS-lkp@intel.com> References: Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Tianyi, kernel test robot noticed the following build warnings: [auto build test WARNING on 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa] url: https://github.com/intel-lab-lkp/linux/commits/Tianyi-Liu/KVM-Add-arch-specific-interfaces-for-sampling-guest-callchains/20231008-230042 base: 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa patch link: https://lore.kernel.org/r/SY4P282MB108433024762F1F292D47C2A9DCFA%40SY4P282MB1084.AUSP282.PROD.OUTLOOK.COM patch subject: [PATCH v2 4/5] perf kvm: Support sampling guest callchains config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20231009/202310090338.4PmYjmBS-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231009/202310090338.4PmYjmBS-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310090338.4PmYjmBS-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/events/core.c: In function 'perf_callchain_guest32': >> arch/x86/events/core.c:2784:43: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2784 | if (!perf_guest_read_virt(&fp->next_frame, &frame.next_frame, | ^~~~~~~~~~~~~~~ In file included from arch/x86/events/core.c:15: include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'const u32 *' {aka 'const unsigned int *'} 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ arch/x86/events/core.c:2787:43: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2787 | if (!perf_guest_read_virt(&fp->return_address, &frame.return_address, | ^~~~~~~~~~~~~~~~~~~ include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'const u32 *' {aka 'const unsigned int *'} 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ arch/x86/events/core.c: In function 'perf_callchain_guest': arch/x86/events/core.c:2808:51: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2808 | if (!perf_guest_read_virt(&fp->next_frame, &frame.next_frame, | ^~~~~~~~~~~~~~~ include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'struct stack_frame * const*' 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ arch/x86/events/core.c:2811:51: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2811 | if (!perf_guest_read_virt(&fp->return_address, &frame.return_address, | ^~~~~~~~~~~~~~~~~~~ include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'const long unsigned int *' 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ vim +2784 arch/x86/events/core.c 2775 2776 static inline void 2777 perf_callchain_guest32(struct perf_callchain_entry_ctx *entry) 2778 { 2779 struct stack_frame_ia32 frame; 2780 const struct stack_frame_ia32 *fp; 2781 2782 fp = (void *)perf_guest_get_frame_pointer(); 2783 while (fp && entry->nr < entry->max_stack) { > 2784 if (!perf_guest_read_virt(&fp->next_frame, &frame.next_frame, 2785 sizeof(frame.next_frame))) 2786 break; 2787 if (!perf_guest_read_virt(&fp->return_address, &frame.return_address, 2788 sizeof(frame.return_address))) 2789 break; 2790 perf_callchain_store(entry, frame.return_address); 2791 fp = (void *)frame.next_frame; 2792 } 2793 } 2794 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEC64E95A80 for ; Sun, 8 Oct 2023 19:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ku/BAmler2sFmzhWg71S4CrzuIzsoND5FCRy4ZlWHIg=; b=sPxlQYSIfbzJQ2 0V7K/XoUcKDSAgWeTZTV2b3NsHzT5Uox3CgB1W+tX9ocKfneGDNrDlf5hA96w1NDY5YZsHigpO+rZ RHpTONIsvjFWRqSNTQMgXgPxYoo/bHBCZ8l7A2yuc9/tC9Cbnh8FcjLpnboLva2sTu6smDRgY2hWr e0obNznIKB+9qVGJmz6VCarA9Rlv6D0s5s+CXZ07KJFRLzXgW/kWJ2WdUx9nKk73dDEF/rpXf5qP3 rilMHJZU1MzK9+HywxqmFEV0ypGmqgUEu9LbmCyZdPTO4K97I5ceIKnVirbetHw/gdpGWODOvxqJU j9ximNOiPEHS9OyOA+yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qpZuw-009DS4-0U; Sun, 08 Oct 2023 19:58:22 +0000 Received: from mgamail.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qpZut-009DRL-2J for linux-arm-kernel@lists.infradead.org; Sun, 08 Oct 2023 19:58:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696795099; x=1728331099; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cKwxlSWZrewmQgKrJB6brf7XXi0sqVpTNLHHsR9nXbk=; b=Ou+PosWmcK1D22k4oNyOjzJFGvJmqdXBiBCwqFrHD7G/WdLHokd39SF3 RmWW+rEcyB6/p76Ggi3J645Q9vxNdkV02uBFqzfollJamLxdBfcOI8HRr 9lP4OTikHimihd1OvKnrNUsBfpwfjw+TtDoJz7l8iHg/KBKuSRPucgwjZ eMQWFZ5QNieRgiqTyfLK7+YC8KqTb/IjjFYYqWSYi/0j/Q9RX1di1Xj6E PeSC/T/we/mjkUDh4a5upTkmcLGcOJhoWkTD2s3XaE5Jfl5FprA7sgh// fikpGicmuP4UHO2zw2u+47Rongdj5jyKCeRCv3tTOK+/C9qrBO3beIULj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="415019067" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="415019067" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2023 12:58:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="869002523" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="869002523" Received: from lkp-server01.sh.intel.com (HELO 8a3a91ad4240) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 08 Oct 2023 12:58:13 -0700 Received: from kbuild by 8a3a91ad4240 with local (Exim 4.96) (envelope-from ) id 1qpZul-0005hz-1T; Sun, 08 Oct 2023 19:58:11 +0000 Date: Mon, 9 Oct 2023 03:57:51 +0800 From: kernel test robot To: Tianyi Liu , seanjc@google.com, pbonzini@redhat.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, Tianyi Liu Subject: Re: [PATCH v2 4/5] perf kvm: Support sampling guest callchains Message-ID: <202310090338.4PmYjmBS-lkp@intel.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231008_125819_800168_14FAD8F8 X-CRM114-Status: GOOD ( 14.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Tianyi, kernel test robot noticed the following build warnings: [auto build test WARNING on 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa] url: https://github.com/intel-lab-lkp/linux/commits/Tianyi-Liu/KVM-Add-arch-specific-interfaces-for-sampling-guest-callchains/20231008-230042 base: 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa patch link: https://lore.kernel.org/r/SY4P282MB108433024762F1F292D47C2A9DCFA%40SY4P282MB1084.AUSP282.PROD.OUTLOOK.COM patch subject: [PATCH v2 4/5] perf kvm: Support sampling guest callchains config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20231009/202310090338.4PmYjmBS-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231009/202310090338.4PmYjmBS-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310090338.4PmYjmBS-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/events/core.c: In function 'perf_callchain_guest32': >> arch/x86/events/core.c:2784:43: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2784 | if (!perf_guest_read_virt(&fp->next_frame, &frame.next_frame, | ^~~~~~~~~~~~~~~ In file included from arch/x86/events/core.c:15: include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'const u32 *' {aka 'const unsigned int *'} 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ arch/x86/events/core.c:2787:43: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2787 | if (!perf_guest_read_virt(&fp->return_address, &frame.return_address, | ^~~~~~~~~~~~~~~~~~~ include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'const u32 *' {aka 'const unsigned int *'} 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ arch/x86/events/core.c: In function 'perf_callchain_guest': arch/x86/events/core.c:2808:51: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2808 | if (!perf_guest_read_virt(&fp->next_frame, &frame.next_frame, | ^~~~~~~~~~~~~~~ include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'struct stack_frame * const*' 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ arch/x86/events/core.c:2811:51: warning: passing argument 1 of 'perf_guest_read_virt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2811 | if (!perf_guest_read_virt(&fp->return_address, &frame.return_address, | ^~~~~~~~~~~~~~~~~~~ include/linux/perf_event.h:1531:41: note: expected 'void *' but argument is of type 'const long unsigned int *' 1531 | static inline bool perf_guest_read_virt(void*, void*, unsigned int) { return 0; } | ^~~~~ vim +2784 arch/x86/events/core.c 2775 2776 static inline void 2777 perf_callchain_guest32(struct perf_callchain_entry_ctx *entry) 2778 { 2779 struct stack_frame_ia32 frame; 2780 const struct stack_frame_ia32 *fp; 2781 2782 fp = (void *)perf_guest_get_frame_pointer(); 2783 while (fp && entry->nr < entry->max_stack) { > 2784 if (!perf_guest_read_virt(&fp->next_frame, &frame.next_frame, 2785 sizeof(frame.next_frame))) 2786 break; 2787 if (!perf_guest_read_virt(&fp->return_address, &frame.return_address, 2788 sizeof(frame.return_address))) 2789 break; 2790 perf_callchain_store(entry, frame.return_address); 2791 fp = (void *)frame.next_frame; 2792 } 2793 } 2794 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel