Message ID | 20230104064402.1551516-1-namhyung@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4999816wrt; Tue, 3 Jan 2023 22:45:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfyp49mSV4/8MaYm5e18ox7ulmcn57KtreVtxx8sjyP3BDm9USzpJrdhuby3eH4EYdyyKS X-Received: by 2002:a17:902:ee41:b0:191:2181:d6e0 with SMTP id 1-20020a170902ee4100b001912181d6e0mr45396063plo.8.1672814720440; Tue, 03 Jan 2023 22:45:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672814720; cv=none; d=google.com; s=arc-20160816; b=I3+pQx/+e62gr+debEvQ3OXMu+U317j36lAyBNSHdwqsFpTRpGFIdFnfgp0vwuwnBQ +2YKfumaasV4jsejaXWVj7AjCjLEIo1uoSO8Cp8ya7KIwbiRwqJiYYnKUm8cLlgu2TRi xxeG2aSKZdO/gXAK1PlCxncRwVQC0SqOnhVK6baykNMKneTxC8rogxeG1hoUjEz/OSbv ogjqLEhKMyJrxeRntuFvmYWUUTn5Ns+6iXToksZSJYC/8FgIWEs8isYz4617wUcFJpsN AeKHTtq91SyAOFJ5g+NrJiE/H1wmancSSnQ6at/RoLPcD/aZfKKSJQHNcZErkB78Sr68 AR1A== 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=BvYzXAL/OlbKW9D/wg8hZHsAC+MKri2nzRM9M3nCnfw=; b=H9dKMZvVEN2B+F4rHfSH5Fd0o8jj0J3UKNvJ1MgHuGzwQDueorL8+1mhyvqrpzg+WG ZKIeHROhd0Z9oPzWDTf0I4X2Dz8muQ17swNPss4hLBOnD3qv3VyAMQeA4KWDRbFjE2Wv M9yCqn+RK5lkqYZByHmkzLxuRuC2o3N6c7aX7OJ5bKWlhcKGZE5JB77fz8OX3KJGmdTx ph+YodSCL2pG9xNyxtT7DgbD3+WPXfM4STRTOPQ4fK0jaksfCFcSpG4EcrGUkvQDQgPY cIglgxOQEpXLmnhbqBAjlGaI5V4AWXBxQdwU9I1Qcrc6wo3z+G0xH8EvzRvfemaoo20g 9sgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="VL/fZbA6"; 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 l6-20020a17090270c600b00186892f9f29si31309636plt.488.2023.01.03.22.45.07; Tue, 03 Jan 2023 22:45:20 -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="VL/fZbA6"; 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 S233482AbjADGoX (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Wed, 4 Jan 2023 01:44:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbjADGoI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Jan 2023 01:44:08 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C22A62E5; Tue, 3 Jan 2023 22:44:06 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id 7so21635684pga.1; Tue, 03 Jan 2023 22:44:06 -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=BvYzXAL/OlbKW9D/wg8hZHsAC+MKri2nzRM9M3nCnfw=; b=VL/fZbA6t/GuJl1DROc4Q7erRbG8ljlGFm3MYSZroHsARxDV4ES1aGPnfkDUBlaWgm VxtSzASxNXkYZkyeH6JJk7cr6egf0qSLP2FHXN7++JE9M6SMHMtg9MT9pO0cOIjnPCC9 YJ0mcYujWew9RDk1VH9zkE3VTmn+iUuYbkGaXPcb8r63I3IRpzJdZtOkmFYRM+cajuwH SQ05zAb4bm6/6Yk0VoZdIgoCaaPV6KtemTe8NAwcIyuC0Pi6bvt96kur2oMIxonte4i/ o+pPSawng+oGruQqSiIukrGJF4q/S3qJMH0KSLvfoFIMXvmtUv9rmsFKzUJAebm0R8Ku TfIw== 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=BvYzXAL/OlbKW9D/wg8hZHsAC+MKri2nzRM9M3nCnfw=; b=dIxYKbKZaiqyoJq/+gFFdwn7fgWIi7D+KAm5zlkwQwEoql9JMZsSIdI4USSDTTbOJH Wdj1HvmVmH7N0pRyzeJ5TL01Bn5+DH9fujNLYq5ViWtiK0w2QU2Vpg3kR4QdX8QTlOS0 mFV6TDZJXymo0ywQDtYfPBv03KVEu+KJSQaQnuCZxzgxTqWgwKjeU3GDmDlnemXJo4Vz dUfvHyU3DQmBRfotU2ozbLLM0mHnwtvj1i83XdhvBzVHLhCrze4oBAary0JrKIdFC9J4 rujswNjp2hdc36LoHnlFgFCk5eynjeYwNQ+++sJ1VzJb7LtFfQGbHqyCs2f/ZNK2F6Wi OK9w== X-Gm-Message-State: AFqh2kp82PQ/Cz6zvkURIZMlPll8yk/oFFTMGHR26ZOoPyYWhezyFky0 /uN2ZyMwbcAan+6Hl4NVOp9UZvgLkhJi1A== X-Received: by 2002:a62:1614:0:b0:580:dd4d:43bc with SMTP id 20-20020a621614000000b00580dd4d43bcmr37428806pfw.26.1672814646060; Tue, 03 Jan 2023 22:44:06 -0800 (PST) Received: from youngsil.svl.corp.google.com ([2620:15c:2d4:203:d1f4:a47f:3a41:e1a2]) by smtp.gmail.com with ESMTPSA id e28-20020a056a0000dc00b00576f7bd92cdsm11829257pfj.14.2023.01.03.22.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 22:44:05 -0800 (PST) Sender: Namhyung Kim <namhyung@gmail.com> From: Namhyung Kim <namhyung@kernel.org> To: Arnaldo Carvalho de Melo <acme@kernel.org>, Jiri Olsa <jolsa@kernel.org> Cc: Ingo Molnar <mingo@kernel.org>, Peter Zijlstra <peterz@infradead.org>, LKML <linux-kernel@vger.kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, linux-perf-users@vger.kernel.org, Song Liu <songliubraving@fb.com>, bpf@vger.kernel.org Subject: [PATCH 0/4] perf bpf_counter: A set of random fixes (v1) Date: Tue, 3 Jan 2023 22:43:58 -0800 Message-Id: <20230104064402.1551516-1-namhyung@kernel.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754073368219059715?= X-GMAIL-MSGID: =?utf-8?q?1754073368219059715?= |
Series | perf bpf_counter: A set of random fixes (v1) | |
Message
Namhyung Kim
Jan. 4, 2023, 6:43 a.m. UTC
Hello, This is a collection of small fixes for perf stat bpf counters (bperf). The bperf framework maintains perf_attr_map in the BPF fs to share the same event as much as possible. But the size was limited to 16 and perf stat with -ddd option would create more than 16 events and fails. Also cgroup events with --for-each-cgroup had some other problems when dealing with unsupported events and duplicate cgroups. The code is available at 'perf/stat-bpf-fix-v1' branch in git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git Thanks, Namhyung Namhyung Kim (4): perf bpf_counter: Add more error messages for bperf perf bpf_counter: Increase perf_attr_map entries to 32 perf bpf_counter: Handle unsupported cgroup events perf stat: Do not use the same cgroup more than once tools/perf/util/bpf_counter.c | 11 ++++++++--- tools/perf/util/bpf_counter_cgroup.c | 14 +++----------- tools/perf/util/cgroup.c | 23 ++++++++++++++++++----- 3 files changed, 29 insertions(+), 19 deletions(-) base-commit: d8d85ce86dc82de4f88b821a78f533b9d5b22a45
Comments
Em Tue, Jan 03, 2023 at 10:43:58PM -0800, Namhyung Kim escreveu: > Hello, > > This is a collection of small fixes for perf stat bpf counters (bperf). > > The bperf framework maintains perf_attr_map in the BPF fs to share the > same event as much as possible. But the size was limited to 16 and > perf stat with -ddd option would create more than 16 events and fails. > > Also cgroup events with --for-each-cgroup had some other problems when > dealing with unsupported events and duplicate cgroups. > > The code is available at 'perf/stat-bpf-fix-v1' branch in > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git The first two are improvements, not strict fixes, so I'm leaving them for the next merge window. - Arnaldo > Thanks, > Namhyung > > Namhyung Kim (4): > perf bpf_counter: Add more error messages for bperf > perf bpf_counter: Increase perf_attr_map entries to 32 > perf bpf_counter: Handle unsupported cgroup events > perf stat: Do not use the same cgroup more than once > > tools/perf/util/bpf_counter.c | 11 ++++++++--- > tools/perf/util/bpf_counter_cgroup.c | 14 +++----------- > tools/perf/util/cgroup.c | 23 ++++++++++++++++++----- > 3 files changed, 29 insertions(+), 19 deletions(-) > > > base-commit: d8d85ce86dc82de4f88b821a78f533b9d5b22a45 > -- > 2.39.0.314.g84b9a713c41-goog