Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4074912rwl; Tue, 28 Mar 2023 02:08:03 -0700 (PDT) X-Google-Smtp-Source: AKy350Z1L+LXX+FctCGC/C+RHUqc5ZLn5zEYpu11WfBzEWR6TuwN25RT9Htw1wxFpYKE48lxqpzj X-Received: by 2002:a17:906:148b:b0:933:422b:5f5d with SMTP id x11-20020a170906148b00b00933422b5f5dmr17770171ejc.18.1679994483171; Tue, 28 Mar 2023 02:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679994483; cv=none; d=google.com; s=arc-20160816; b=aruVipYs+yPboCOWux1B8tiCzyhdaSoORo7Xp4EVYuxrVzHLGAF2QOrmo3m8oZVx9z Z1xVOnwjVEHUtw71vn21+Uts9hXVyImFMn3n/rk5gkszveBoH8xUwXoeY8LP5a8Mu5Or WgPUX90pV5wjkHUjnMiD8I6CH7P9HBQOsikIvuiyLS+jU7+Zg/F80JkmXmXccrM0CQgi 58JzAAHvyIYQi0EqwotNZXxJsfzYr9fmAWG68TfD9qIUjuAe0G7Qk6YX3Ytkkgk8FS+c gXguk0L7fZHX1Mft3grGEMA3IlK/FubUbHhRYy5vgxD9ZYKIKxRirMwv4uAR6WDI63wf RHKA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=Ly7PZdB1mThJgfFGqRPbuq8LN8F1zDV5JTGG3Uoh4Ok=; b=yHBC4zUPBS28twWtw/l2KMf6YV+qN65olkm4x/1PiXILsxkvWh21lqWJio5CCx/yNd K0g+l13bxJoLf4GGSMbcbfCvYWB7/UN6xPJAoagC6meH0L1oAiZhs2eFhmSV3xx33k1H 0cMBJw1jKYeBuoVWXvGOAe2lz2SSx/JXO+UMcl0rHos+/DVWv9Le9OAyksJnB7OPz7GJ LaSVek7MdtsxgZEE0gAk/eQEz9vBOP+MoDozGOhvycYgJRN9eb0Yl9YoMRKi/diNM6Dx 9FekOdgGGn7tpZxKbFPhbBduV97OQrWp6oucdxXhffTU5x/3xztE1iMOmd5miQ/94KEd MTYQ== 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 sz6-20020a1709078b0600b00932a14e4d4fsi8484348ejc.146.2023.03.28.02.07.37; Tue, 28 Mar 2023 02:08:03 -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 S232276AbjC1I7a (ORCPT + 99 others); Tue, 28 Mar 2023 04:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjC1I72 (ORCPT ); Tue, 28 Mar 2023 04:59:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7F2E6210E; Tue, 28 Mar 2023 01:59:27 -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 799DCC14; Tue, 28 Mar 2023 02:00:11 -0700 (PDT) Received: from [10.57.20.101] (unknown [10.57.20.101]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4B89E3F73F; Tue, 28 Mar 2023 01:59:25 -0700 (PDT) Message-ID: <5a120a90-0b95-cfd0-beff-e9228a9d394b@arm.com> Date: Tue, 28 Mar 2023 09:59:25 +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 To: Yang Shi , Leo Yan 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, yang@os.amperecomputing.com References: <8ca2b07e-674e-afb6-ff12-87504f51f252@arm.com> <20230309113851.GF19253@leoy-yangtze.lan> <20230313121420.GB2426758@leoy-yangtze.lan> <20230314003610.GD2426758@leoy-yangtze.lan> Content-Language: en-US From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 28/03/2023 01:53, Yang Shi wrote: > Hi Leo, > > Just follow up on this one. Any update? > Hi Yang, Sorry no update on this yet from me. I was just finishing off "coresight: Fix CTI module refcount leak by making it a helper device" which I hope to post in the next day or two and then I will start on this. James > Thanks, > Yang > > On Mon, Mar 13, 2023 at 5:36 PM 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