Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4640768rwl; Tue, 28 Mar 2023 09:19:34 -0700 (PDT) X-Google-Smtp-Source: AKy350ZbnRx81SI/igVdNjNDBuTbbDG61siasU3lL03lCT5rmvMLPhOjHQu2KrT0LN6ZWa0F9hPT X-Received: by 2002:a17:906:148b:b0:933:422b:5f5d with SMTP id x11-20020a170906148b00b00933422b5f5dmr19212757ejc.18.1680020373707; Tue, 28 Mar 2023 09:19:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680020373; cv=pass; d=google.com; s=arc-20160816; b=yfn58s6mlEQCNcQIxolJTAULBRl/HQaf3inQx2RUo9Csy/3kkTa6yhpYQL2Hq9mwXz VOchwsxuuJrCwOUhj4q4ZYStoZz5ZQgaKBma3XQmlrecAZ9cFxEyW9b5SvWYHSGE1kNm IokPuWJy9DaOzNuVkV3qzf7fUS9JKm+ZpGvA3qpmSvHavQHD7YBAhTzi2CRSv5AYobJg pDRNrzIH5udp2udupfL9JVxGs033Fme3MFciCUoWxRaT5rcdl6ovCltATRZQP0DZ7leM Yo1K4iGYW0fQOrLi4MxIG+S6+4ExkoxlTQmKEj4j7ci2e2M4+g/3fWNtl65C/GxSdNoF Ocxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=UEIDXiUOnYnvcchFb4TfKcW2SLBtwi46oN+ScGHw/0k=; b=C7TsxZ3w8LI+/rYB5gPJy6YRchMMt7vzjV0KFNYIvM6S4o+qTx3uWawYBO+HaGDWrC y0D8YeFp8kOCwANOK2qVnVny1eYDIT6Nz/7BZO/3jAs0ZZqt4/qAsARZyevvoVRQ0p5V r72U8oUqBJ6WQSU82x/7fWmlnn7Lgf/ZSgrV7LzTIIw8CHJoMs3Gb/EmZ8XBUlQTgaqg PxUOFGuDnxNoKuyNvr96+EVq3xI/DBC9lADPOWm7BUJ9mTYvWwer9Y5AWvdseF7Ns6wz 3/1lSZLdD9+D7jAPZ+67Ps4H72wKW5TieI1sONdvTziYlJMGae+aR15w+gxI5cnKJ7yR chcw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b="ZCfcUo/2"; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a26-20020a1709064a5a00b00931038178ecsi25218322ejv.330.2023.03.28.09.19.09; Tue, 28 Mar 2023 09:19:33 -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; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b="ZCfcUo/2"; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232991AbjC1QQg (ORCPT + 99 others); Tue, 28 Mar 2023 12:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbjC1QQe (ORCPT ); Tue, 28 Mar 2023 12:16:34 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2112.outbound.protection.outlook.com [40.107.93.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6ACCE054; Tue, 28 Mar 2023 09:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UK1bPSnqscx/xlHS5rzZA9uvxyoGK4qOXUOHvLdbRYkkYWCiQ4JEV7UjE/sc9gbfvPQjOBpoLUgx/YdHuQQmQ4FqP/l5u1IRfQbWl5P7AEhKs5U7GLyxvwF2cA5NJ3f3O7KAEKa+x7UInno94W7WwA5D7YLLOYhfDtQYWOQ0A2TwM/lJHS+m2YnGIGNB7f8zDCMd5DrHuv3AU1UQjSjZTJDlJpPjQDWpT1ODBCVttjoB2PSRqxiCPfKJ+sD4bbjyd+bkHvwvs7p1RTP9ONtgvjpEQmFHa4AaVMHQmHSRpPEl9Gj+tJBre7CTgdFSZ1Wk/OI08z0bBV4E28EyDdLegg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UEIDXiUOnYnvcchFb4TfKcW2SLBtwi46oN+ScGHw/0k=; b=kMmvS8M/2yzghxvZR6OnU4s+ck9mulv0Kk57C5ciUYzw7n/OZCp/Gcz0/19bUw2+/JXLvpQr5r2grtrdctb96FPSGSDo3nMut6R6Gnj8OMgg0y3huZM66r5a/vfh/cCdXbQYZWO2ampdKrk2H146FMueP70pD51Rx21mDO2ouxpkcM56cXgyUc5gQ1p5BODuGFqHE+Fp0LRQ1dhwX/Jx4mJiKRYNUdk/4cxuPjVTAEevd54nRJ7KAes9UyBGhFhJqO4Eq0Yrl9ZCFJRPQ4m5UO11o4sH3JjvjvBJRULK718s8ef4LyWQlYrVXCm5AIepcn3EcnHmC1CPcTs3lJJFSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UEIDXiUOnYnvcchFb4TfKcW2SLBtwi46oN+ScGHw/0k=; b=ZCfcUo/2VZ6MUd9lgmlnbh6rRizj9wclEMJcn3CYY878jQpRiDL2hlnwA18X1nhmmiBXv8SzraOkxaLccb/NLMoWR8WqNLobpxzWrLciSkGsGDTrrv1TECZtSyK3rhoXmWRI2nHara6LTxSEl5WnIU35FBwbardPH6bASMuE8mg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from BL3PR01MB7027.prod.exchangelabs.com (2603:10b6:208:35a::9) by BN0PR01MB6974.prod.exchangelabs.com (2603:10b6:408:16d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.15; Tue, 28 Mar 2023 16:16:29 +0000 Received: from BL3PR01MB7027.prod.exchangelabs.com ([fe80::ef17:958:5c42:3d26]) by BL3PR01MB7027.prod.exchangelabs.com ([fe80::ef17:958:5c42:3d26%3]) with mapi id 15.20.6254.018; Tue, 28 Mar 2023 16:16:28 +0000 Message-ID: Date: Tue, 28 Mar 2023 09:16:23 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; 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: James Clark , 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 References: <8ca2b07e-674e-afb6-ff12-87504f51f252@arm.com> <20230309113851.GF19253@leoy-yangtze.lan> <20230313121420.GB2426758@leoy-yangtze.lan> <20230314003610.GD2426758@leoy-yangtze.lan> <5a120a90-0b95-cfd0-beff-e9228a9d394b@arm.com> From: Yang Shi In-Reply-To: <5a120a90-0b95-cfd0-beff-e9228a9d394b@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: CH2PR14CA0052.namprd14.prod.outlook.com (2603:10b6:610:56::32) To BL3PR01MB7027.prod.exchangelabs.com (2603:10b6:208:35a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL3PR01MB7027:EE_|BN0PR01MB6974:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e107756-a76b-4fc1-1ead-08db2fa7c926 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1WJaOUPixyEhHvoMZG/fwEhepnI4eoHOESWMTmsVdVieFW03RN20bFn9QpKgIPCMLynAKJBdd5MgwZfPuknegRrMwzsmWtxIO4pxnNTDI81sBPKSHvflmZYnD6rsjCFmLJbzeo/NKG45O2FIatbW6+FjJghhM+qw+3FQ0ME+hTpuu6T7r2YqmiJatj3lM2uQUIDonq7kJ87mIzMcKW9vmHs4f/fCc3ph5grT3zAwKqbUodXHvpJYubBNZZOo1PVO60EjfiZHl0GJBtwAM17eOVQYNEbozShobA3+7RLrOURA1CuSrHpKGf5OAtTG/D5Mmnvqn5jvjkF0fp89fbTNzkifaOcc4tliqnGY6/bS/it2ShsQjCZ69u1QYEmBEvpwrrBLLQrpNtZaJPrvAeybNcZucHA/5iEehoNo4TcECI+WFSfFfS4bPqeKasFY/on2Ih6QScoldWmlk/vZ3TG4H/5WJ+pNUiIfekpyite9iaSv96/7lmnt32Mk8q+9ogsP6nFB1QRSHlrzMqE6Cz9RcH9RcB7EGMfb7l5bJ6diMiifbabDT49ya97lrbB+NVlUf8a6ZTyJdewyfO2FV7U4IbKY/Sy+aDdtfaOm2/5XkDsnsJoGYQhpG18WWaA/Ue0ywxmdBMBdC2/zcX47JPb7cA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR01MB7027.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(376002)(366004)(396003)(39850400004)(451199021)(38350700002)(38100700002)(31696002)(7416002)(86362001)(8936002)(53546011)(5660300002)(6666004)(6506007)(186003)(26005)(41300700001)(52116002)(66946007)(478600001)(316002)(31686004)(110136005)(8676002)(6512007)(4326008)(6486002)(66556008)(66476007)(54906003)(83380400001)(2906002)(2616005)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eFdvODN0UTNwQ3kzbXlwSXF4TGlKcHNhMzA0ZGFkM1I3UE85NlhFTk9PNWVI?= =?utf-8?B?MGc1NmpURDI0SGxvaG85TTNkejcxR0hsbEFXdFV1Mml2Y0Z3aFYzcUpaTGNW?= =?utf-8?B?SS9MZnZnamJsVXhaaEhTcXpQY1ZHV0x0THZadktTZ2NHYXdFV0U1czhDMGYv?= =?utf-8?B?bVRHNWl1M2YvMVdvQjFTdHo0SzM5SEJpM3JnZWxtbU9ENExoL2ZhZzR0QWpK?= =?utf-8?B?UjdNYk5jcitFNnh5WHFNaWhlRWRWanJKVFRsaGxxc1NGdVVsMUhJSmFmbmlY?= =?utf-8?B?dTk2S2RKaVNtUmJuQytBc2k2RG1VR3IrdGt6U1pwMHNKRXlzZHNQTlda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Nc2FrYzJpOFlxd1ZsOEVCNndiaEFLSDB2RWZXbGtJenFXVTFuMzNFWmV1?= =?utf-8?Q?nFMXv/byvqiGdxlZEDDvqpE=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e107756-a76b-4fc1-1ead-08db2fa7c926 X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB7027.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2023 16:16:28.5879 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JKg33GcZ0rZ6EWU2vaUMGlXth9a6UXhn5OSzZxfR9Sgh+u2zoEPa6Qpw1BKAbG807y6UYyL20+1KB6HUnvjNLmwINmkaQhuD0CjM+uvnfqE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR01MB6974 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS 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 3/28/23 1:59 AM, James Clark wrote: > > 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. Hi James, Thank you for the update. > > 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