Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp421674pxb; Mon, 25 Apr 2022 12:53:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3DFj3S5eFynB4Qw+d8lILMcTh8c4SzV5xd2itLzMNUt36LSIo5YrkCvrrcwOpJVTj4c16 X-Received: by 2002:a05:6402:2309:b0:41f:a5a9:fe13 with SMTP id l9-20020a056402230900b0041fa5a9fe13mr20936894eda.123.1650916380300; Mon, 25 Apr 2022 12:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650916380; cv=none; d=google.com; s=arc-20160816; b=HVbTKK/QnpcvK8g4pkaz6PTUkmegoUIEfy9WK/qJs5uqZaqNcX/xnL0J7Td9yX4HmI pPkkdB0Mp3iAhBCsmJ8BC7UPYVlV2qQZ9I0v8hIE9X4U2h/u1tF8s5fzBel/UcLnw6Eb aiQZrwfRi3qfY3vOJfVvkdcqOBDi3mFloLbpllMzTFmWiw5ACHYt4PrL3fq9m6cN2oZG b20qq8JztM+PlZzFNN3x5TElwMzYxFb4IM09zjpyWBD2gMy7ohcQp56bBGMcxtnXlQos VFTh6VtqkG2H4aJqUaXiE4vl2y6tH+con4Z38iG+pG0yGxCk92yCFUkBzIzx4zQFtiUR 8AmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=45/r80ZmXqdXhos3fg4/lwBRkeYGj68a8PRgoYmVrvI=; b=WgVVQreP8lFu4iCrQ5UyZi/teOZ/afeRlcslaPAcufy5Mfns54IL9u4EtXA72Xvwi5 77ijdpyOPpxfbwzZgBX/RQ7bIN8782qOyKjH/+PF7iL3LX5alWpo/GlajlpebTskGzgg p+tTXXdehMN/Zzi44PPoURNFn8mVxYb0TWFncEqdbe2RXHZnU0lavH0O3ceb8JTJ6ar2 evXIxS8NbuxdKub7GyWDcBDIDRcgilFMYxJcGRYu9BfBwaYKfV2CmPpHWUEQYGKR/rVn 1tbtxuAP70fK+LZbwjD/zNP5Fo2eBqjiMVPtPsRkoE493WCWliIXVdo+2K8ro20NCZnj TRYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id io10-20020a17090780ca00b006df76385dfasi4138981ejc.666.2022.04.25.12.52.34; Mon, 25 Apr 2022 12:53:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241688AbiDYKI6 (ORCPT + 99 others); Mon, 25 Apr 2022 06:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241661AbiDYKI2 (ORCPT ); Mon, 25 Apr 2022 06:08:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 83EED35AAE for ; Mon, 25 Apr 2022 03:05:18 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 47F211FB; Mon, 25 Apr 2022 03:05:18 -0700 (PDT) Received: from [10.57.10.156] (unknown [10.57.10.156]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 88D7A3F73B; Mon, 25 Apr 2022 03:05:16 -0700 (PDT) Message-ID: Date: Mon, 25 Apr 2022 11:05:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] arch_topology: Trace the update thermal pressure Content-Language: en-US To: kernel test robot , linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, sudeep.holla@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, gregkh@linuxfoundation.org, rafael@kernel.org, rostedt@goodmis.org, mingo@redhat.com References: <20220419164801.29078-1-lukasz.luba@arm.com> <202204201654.vcszVDGb-lkp@intel.com> From: Lukasz Luba In-Reply-To: <202204201654.vcszVDGb-lkp@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/20/22 09:34, kernel test robot wrote: > Hi Lukasz, > > I love your patch! Yet something to improve: > > [auto build test ERROR on driver-core/driver-core-testing] > [also build test ERROR on rostedt-trace/for-next linus/master linux/master v5.18-rc3 next-20220419] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/intel-lab-lkp/linux/commits/Lukasz-Luba/arch_topology-Trace-the-update-thermal-pressure/20220420-005845 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 3123109284176b1532874591f7c81f3837bbdc17 > config: riscv-randconfig-c024-20220420 (https://download.01.org/0day-ci/archive/20220420/202204201654.vcszVDGb-lkp@intel.com/config) > compiler: riscv64-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/intel-lab-lkp/linux/commit/aeff700a88be6a7469acfc312155bd213f76de95 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Lukasz-Luba/arch_topology-Trace-the-update-thermal-pressure/20220420-005845 > git checkout aeff700a88be6a7469acfc312155bd213f76de95 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > riscv64-linux-ld: drivers/base/arch_topology.o: in function `.L18': >>> arch_topology.c:(.text+0x136): undefined reference to `__traceiter_thermal_pressure_update' > riscv64-linux-ld: drivers/base/arch_topology.o: in function `.L20': >>> arch_topology.c:(.text+0x168): undefined reference to `__tracepoint_thermal_pressure_update' >>> riscv64-linux-ld: arch_topology.c:(.text+0x16c): undefined reference to `__tracepoint_thermal_pressure_update' > riscv64-linux-ld: drivers/base/arch_topology.o: in function `.L0 ': >>> arch_topology.c:(__jump_table+0x8): undefined reference to `__tracepoint_thermal_pressure_update' > I've reproduced this issue and experimented with a few solutions. that config file doesn't set CONFIG_THERMAL, where normally we have in thermal_core.c the: 24 #define CREATE_TRACE_POINTS 25 #include (similar mechanism we have for thermal_power_allocator.h and IPA.) We normally test w/ this config, but I'll also start checking the build w/o thermal subsystem. I cannot add those two lines in the arch_topology.c since it complains about multiple definitions for many entries. Thus, I'll create a separate header thermal_pressure.h to put it in the arch_topology.c. I'll also export the symbol as suggested by Steve, so some potential cpufreq modules could just us it from there. I'll also re-visit the trace events that we have in thermal subsystem, since they are not exported but some modules might would like to use (some of) them... Regards, Lukasz