Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp880507rwl; Wed, 29 Mar 2023 09:35:17 -0700 (PDT) X-Google-Smtp-Source: AKy350YGYgO6t2V8RjRu6fbm9GB0m1tCbnOY8czBhD+fUcM0ZnuNdd8heYt7OR2QpETKhBBNxWGc X-Received: by 2002:a17:902:e882:b0:19a:96d2:2407 with SMTP id w2-20020a170902e88200b0019a96d22407mr3051958plg.8.1680107717433; Wed, 29 Mar 2023 09:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680107717; cv=none; d=google.com; s=arc-20160816; b=VcNoGC3JBwqyWwTtpm3qmvklidvnO9zQGFE/Jj81v5mewi8pNp+VP5uI3LY0SDKABF sWFTEv1n2A+ZI4qoQrTr98a50unnfSuws0mdBolpN2y3MzMB2zcM2+VBwCji3MZf3B/9 Mj5NW2q5ztffPg3BFo2D3F0D/BnTNM7lEjbLOywAL0wcMP+7bc/D/qQn2e2eTkr6OnWX g1kS8NBil1jYRQJIeTFWj7+oSaR5awyTBeckIpopVel7p2CmLYCKx9T0C+ZGy7/gUunh FArwLzhbRhgNXPtN596FjmT7W3P4dwzHO5RVHUq1H/5EUB3I9Vb8Os5WjfNS/h9AqKAI AdNQ== 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=6+eMoTA2ULCPdHg169IJrjwo2RbOOqjjvAHvzd1InLY=; b=BbwHwInXiE6s20Wum4kQkVAGLvlwQ6tIAQsit2d3o7p8kPJ/hnjXMLoEkuyvAkuWHO UxV+KIjjSNYsT4Va28pzzBBeG3m1F3sOEmHvR0QYn7YPbvkf1wjjKmNEt1wiexvA+z3r n38wEzIoUxiunb03ksNCsvIA3uP/fcp+ZX7CP3YBu8xZkngwMQcj6fEfiTIgYIPmzVYL 1tx3/eBwG0wUwx+RgiXzfqNiUQi7DUAV8XVjHVE0iJfHuNKlvTKd1f6igWFdOjE9X8Pp 8LzA0kWx/cHltHGmkqqD+m90LrsYyKHjaWbtd8+GM5eW5r6ChoCCJ01+w6+B3QPz+IGn HpCg== 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 l10-20020a170903244a00b001a1dc236bdbsi23015275pls.539.2023.03.29.09.35.05; Wed, 29 Mar 2023 09:35:17 -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 S229729AbjC2QVn (ORCPT + 99 others); Wed, 29 Mar 2023 12:21:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjC2QVm (ORCPT ); Wed, 29 Mar 2023 12:21:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A46710D8; Wed, 29 Mar 2023 09:21:41 -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 490751FB; Wed, 29 Mar 2023 09:09:32 -0700 (PDT) Received: from [192.168.1.158] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6C0C63F6C4; Wed, 29 Mar 2023 09:08:46 -0700 (PDT) Message-ID: <64db6d95-8aca-48cc-80e1-e68211922071@arm.com> Date: Wed, 29 Mar 2023 17:08:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [BUG] perf: No samples found when using kcore + coresight Content-Language: en-US To: Leo Yan , Yang Shi Cc: linux-perf-users@vger.kernel.org, LAK , coresight@lists.linaro.org, Linux Kernel Mailing List , mathieu.poirier@linaro.org, adrian.hunter@intel.com, Jiri Olsa , acme@redhat.com, mike.leach@linaro.org, Will Deacon , suzuki.poulose@arm.com References: <8ca2b07e-674e-afb6-ff12-87504f51f252@arm.com> <20230309113851.GF19253@leoy-yangtze.lan> <20230313121420.GB2426758@leoy-yangtze.lan> <20230314003610.GD2426758@leoy-yangtze.lan> From: James Clark In-Reply-To: <20230314003610.GD2426758@leoy-yangtze.lan> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 14/03/2023 00:36, Leo Yan wrote: > On Mon, Mar 13, 2023 at 11:15:44AM -0700, Yang Shi wrote: > > [...] > >>> Just a quick summary, here we have two issues: >>> >>> - With command: >>> perf record -e cs_etm/@tmc_etf63/k --kcore --per-thread \ >>> -- taskset --cpu-list 1 uname", >>> >>> perf doesn't enable "text poke" attribution. >> >> No, it enables "text poke" and perf fails to decode coresight trace >> data too. It doesn't matter whether "--kcore" is after or before "-e >> cs/etm/@tmc_etf63/k". > > Understand now. Thanks for correction, if so we can ignore this one. > > Leo To me it looks like it's only --per-thread and --kcore together that cause the issue. I can't see if that was mentioned previously in this thread. If it is --per-thread that's causing the issue then I think I have an idea why it might be. There are some assumptions and different paths taken in decoding in that mode that aren't correct. It causes some other issues to do with ordering and timestamps as well and I wanted to fix it previously. I wouldn't say that the text-poke change has caused a regression, as decoding in this mode was always a bit buggy. Maybe this is another reason to fix it properly.