Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16402846rwd; Mon, 26 Jun 2023 09:29:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PJqJF+S2GAS+0+QZuZj4WpyFTVRJpODerp7U/qfTCtNFWfYHyvitMJx6VaetBaeZGRnZD X-Received: by 2002:a05:6a20:12d6:b0:127:63a4:c585 with SMTP id v22-20020a056a2012d600b0012763a4c585mr2590936pzg.22.1687796996995; Mon, 26 Jun 2023 09:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687796996; cv=none; d=google.com; s=arc-20160816; b=DzuJg2dSxMpTahpmHXCkJWcvUu8SgvzLAixs5wjQ09UKgTYV4z+AfoO38JAU1Pg329 xJGDWtwxc4gKJCOWchM5ixSDu98ytvI9BZVTgS/xyZuYdpgysTrhqkLyEPCUh8pn8qQB 1vGd2quI8Mgdhcxt8tSSsuP5B0/kAg4mOeQfnpiqqJC+qV0ot0CXEuQv+r/H9EUX4AI+ FzBkCzj6q/+VSmgui9kOJDwpO8PMJWaaPCAsjqjFyV30kVFBt7FgR/lo9FYq8uQUkG1b 5Z2LLqqQh45tIKMUyTTOiFUFXufJH/GsMtiQo37sZBuTwMYPqDaaTsaWFEc4D+kZU96m xcoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=vpGP3WqlFXxNwR9L8M5J4k4FHRS0AjB8l4ujex4Bacw=; fh=BH2wu2WC/D8Gb1TvhiNtspnHR3N8TPMNXgmd0sXnIOI=; b=ms8+UmpawEoJauQqTBabGB3LUmVUF1CDr+pqoUX4yz3v3Mc/hS/SURe/WAIb7v+BpG F3wBLYP2GgNT3yy37GlACfO5j22deVWB7O2Lfhgb5S3yQq+i1TE/XlG0lkfxZPTVUkPu oHEsQ+nShbg4UjYCDENsU0ADPR3SpdGLYHupI25io51JCn/fivfhZjhFASVgCzy5XYHG KWgiMJ7pH3UiO9WRbMrlyyzHtGT+oOfY+wHq4cvP0ZYnTWJB2f8aD9p7bY8fC+oyMugb ZVPKjfl3GEg0j7rxSMlFYoImWfQX0BK4lSj1hjDmhigZVUakEh9jIe222EwJAgQkPUga 9KCQ== 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 d12-20020a056a0024cc00b00665c24182bcsi5153070pfv.219.2023.06.26.09.29.44; Mon, 26 Jun 2023 09:29:56 -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 S231688AbjFZQLL (ORCPT + 99 others); Mon, 26 Jun 2023 12:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229959AbjFZQLK (ORCPT ); Mon, 26 Jun 2023 12:11:10 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE3601B7; Mon, 26 Jun 2023 09:11:08 -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 730552F4; Mon, 26 Jun 2023 09:11:52 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E144F3F663; Mon, 26 Jun 2023 09:11:05 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org Cc: James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Suzuki K Poulose , Mike Leach , Leo Yan , John Garry , Will Deacon , linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] perf cs-etm: Track exception level fixups Date: Mon, 26 Jun 2023 17:10:56 +0100 Message-Id: <20230626161059.324046-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 A couple of changes related to edge cases since commit 8d3031d39fe8 ("perf cs-etm: Track exception level"). I think the second one is low risk seeing as any path requiring a thread leading up to adding to the histogram would already have been crashing. Maybe the thread check could also be added to hist_entry_iter__add() although other users of it don't seem to have the same issue, and there is another use of al.thread above in builtin-report.c so it's probably ok where I've added it. Applies to perf-tools-next/perf-tools-next (929ff679b69) James Clark (2): perf cs-etm: Handle per-thread mode on EL1 host kernel case perf report: Don't add to histogram when there is no thread found tools/perf/builtin-report.c | 3 +++ tools/perf/util/cs-etm.c | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) base-commit: 929ff679b694f0f9656aec38b3a7d5c440c5ca24 -- 2.34.1