From patchwork Thu Dec 8 18:26:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 31452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp356457wrr; Thu, 8 Dec 2022 10:31:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Qdk9IU7iaLMkKd4PypkryvzKSS4Sqjxqir89jUa80cN5JtncriE96czUXDekA+8CeDc5i X-Received: by 2002:a17:902:aa0a:b0:189:f8d0:7b9e with SMTP id be10-20020a170902aa0a00b00189f8d07b9emr5824650plb.2.1670524305477; Thu, 08 Dec 2022 10:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670524305; cv=none; d=google.com; s=arc-20160816; b=Z/6g6xZ/dtl43YghsVvKM9UMVZOyp5/Opha8BT78Bx0AhpaBV6uMpB35vLhk7DElew l6h7a1svzAjwT7L+wZkD178IRAmm73GGfnyyxPEDI4AfEB6XKh+KuWOKt9VaPJoy10H9 fTStHV2SrGUkZXzMMZfXziPGKySK+5Dg7/Y57wMfZ303GGoj0/mwI3PzTV6nFN+MIxzT 9onRwLGtigN7gNTBoIsAa80H5n0e7+tem+dgKzaG/IYWjRQu2nBhYTDVHk+FFVL15+XX b5ROOGshHJEW8zS3Ih+8PmLhWRc+HPs1z/0E/xsLiKSYS7T6qDYdAhitUCV/ejaQEjix xWUw== 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:sender:dkim-signature; bh=ze6sTd98o+g+6IIqM1P3HBE6uRWEE3mJ5ZQRVJK3+kI=; b=sioQy9clnUckmOVo10eChR/X/8GpI8MEVaWX+kOqxLbgPEnljVo7NNVbTpUWwVw/Cd xz6zTAVYdf5xcGduxAdRlWu8vdHNlKeTXE45oNnV6pMsKdUuXS0+FmmScwiVMnF4pLY4 yDyw1iQSuZC21IbgsP9d/4Ao1F8QvY1UyctOYKv2Wm64XvvuJbClTySRr2WtxzhifypK omeHvtFAXR7XpYCIzEix8E6JbHn9uMt6v4x7Ud9Ag1tF3OSUkERZUd7aOwsJwH3LaFOt 7tJ4E87Y5LQMdj2vBoNRtP/DmKOVUaP5EFZVACunyDZ3hzMQOiqW7o8uO7zKPRXZWB47 +t9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ir+BkFOq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9-20020a170902b18900b00174c5fdc8d2si22115241plr.307.2022.12.08.10.31.32; Thu, 08 Dec 2022 10:31:45 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=ir+BkFOq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbiLHS0u (ORCPT + 99 others); Thu, 8 Dec 2022 13:26:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiLHS0q (ORCPT ); Thu, 8 Dec 2022 13:26:46 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A340AD32B; Thu, 8 Dec 2022 10:26:38 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id p24so2339732plw.1; Thu, 08 Dec 2022 10:26:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=ze6sTd98o+g+6IIqM1P3HBE6uRWEE3mJ5ZQRVJK3+kI=; b=ir+BkFOqTEnIwxMwiDi1qxBss3dcDnH4LP4ATiGGOkJHtkbTjaXxCN2LVPi/O94LN5 Hw6lfqXHVmjrmFFioKM5dca8WX3ut2gwdqbDo5rj8T2nea5dm9CCgWIVlVmOBPJ0cs8u 0H67qvZ1PkYImLRJKpK0Q7Hcq/egl2NPvTYnpH2O0NTkj1jOvFNLFddpUiJVfK82D7ll vcsg2xEtEZWDAIxP2z/Bh+0/U8DNPxxTvVPfHXiN5E0M7NInh28qx46egKMJ6BiHLodb CxGcwO1Yc+FEVn/w/hx55yANIY2vSgWIQVJQiDBzDaKD8OGcALxu9woAg6bOFovVBBt3 5aKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ze6sTd98o+g+6IIqM1P3HBE6uRWEE3mJ5ZQRVJK3+kI=; b=urUhWwYE6rKl+UZVfJOIN50U30uqf5E8xcxAe7geJkaYQoxMDN/L2AfvSxVQcTdBs8 lPSBjxd8fgYkGsGlupxZesUzmjFOVcQEO3idKBFvtk/os/yGuH2FMsDNOnjFagBVK3HF 9cCqqPBoKxuDhr4okJ9mQTGIkAZBUeK4sU0bY34HOxM04DCbtIJZ9MYAzQ4Jhck6nvI0 H4T2D22+/ocjmUCFnyEYxHoQcQPtj0HDuNSYnei5xAAJ7Wk+bkhDXzYKSS+tnHH891iQ OpFeJ0uBulZF0Hyeb0AVpNXgQEYlAKNJe3R5rLxU0Pj3iF4KZPOGXwNMQ0uXvsyO5MGt S4Dg== X-Gm-Message-State: ANoB5plgBhBdDGmzgesi3XDu1fHcUqpgQNCXqy9cXH4m0Cq4zxGpUDAo 65Q+NqZ3U97Wu/5mpBUlvxs= X-Received: by 2002:a17:90a:2d81:b0:219:9676:fef4 with SMTP id p1-20020a17090a2d8100b002199676fef4mr27870762pjd.89.1670523997544; Thu, 08 Dec 2022 10:26:37 -0800 (PST) Received: from balhae.corp.google.com ([2620:15c:2c1:200:e288:d3e1:a97a:4b35]) by smtp.gmail.com with ESMTPSA id c133-20020a621c8b000000b00575cdd7c0adsm15606679pfc.80.2022.12.08.10.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 10:26:37 -0800 (PST) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, Song Liu , bpf@vger.kernel.org Subject: [PATCH] perf tools: Fix a typo in BTF tracepoint name Date: Thu, 8 Dec 2022 10:26:36 -0800 Message-Id: <20221208182636.524139-1-namhyung@kernel.org> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751671694486453263?= X-GMAIL-MSGID: =?utf-8?q?1751671694486453263?= In the BTF, tracepoint definitions have the prefix of "btf_trace_". The off-cpu profilier needs to check the signature of sched_switch event using the definition. But there's a typo (s/bpf/btf/) so it failed always. Fixes: b36888f71c85 ("perf record: Handle argument change in sched_switch") Signed-off-by: Namhyung Kim --- tools/perf/util/bpf_off_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/bpf_off_cpu.c b/tools/perf/util/bpf_off_cpu.c index c257813e674e..01f70b8e705a 100644 --- a/tools/perf/util/bpf_off_cpu.c +++ b/tools/perf/util/bpf_off_cpu.c @@ -102,7 +102,7 @@ static void check_sched_switch_args(void) const struct btf_type *t1, *t2, *t3; u32 type_id; - type_id = btf__find_by_name_kind(btf, "bpf_trace_sched_switch", + type_id = btf__find_by_name_kind(btf, "btf_trace_sched_switch", BTF_KIND_TYPEDEF); if ((s32)type_id < 0) return;