From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E0C7C48BE6 for ; Wed, 16 Jun 2021 16:34:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 374E36135C for ; Wed, 16 Jun 2021 16:34:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbhFPQgv (ORCPT ); Wed, 16 Jun 2021 12:36:51 -0400 Received: from mail-lf1-f42.google.com ([209.85.167.42]:34713 "EHLO mail-lf1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbhFPQgA (ORCPT ); Wed, 16 Jun 2021 12:36:00 -0400 Received: by mail-lf1-f42.google.com with SMTP id f30so5365470lfj.1 for ; Wed, 16 Jun 2021 09:33:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bk7gyyJ971of6oKSmwZ2gnQxPtz67qnueVXzAGbW/QQ=; b=osOksEM3EOrdFhMRZslmjnkAH3hKqweOyvMw7BUzWMjbjtvHbtWTCM+7+Q9lv7muPP wBTQc+UZOrLPMxvIjwPy+fQP2scVuPRJ8lc1ae0vJLIudIG5NPvOd7UDZcBRecApUyPD HKRR3bckyNUOOgxSw8wSBsdkdfAdpOIBv7KU98MKXf706djxNrcXI3QVLXsuCMjCpTKF BoMeUGUcwxNt39TWYKJliM668HLKx/1ZU81/bTonoUFdDOYteqUF/J0PdHsQ9R4iDspG 6yNbt021y/UJ6JtpzdaiLAs2YQtHm4bUSjb20pliKp5tG0S/5MmnD5Rqkjk/jsuhCYXz +Kyg== X-Gm-Message-State: AOAM5337haXQnAb9ldyRwQeczd3ymhcXIrnwHtmLglzEFCWrSBqdxhrt z5ApjFKb34ww6GiznjDltFtuSfiLKEyuQYak/XU= X-Google-Smtp-Source: ABdhPJztxXqzh1q/P/s19USQJMvSUSqMoPAaDfGOR/ZFJBLUB1fowqG75/B/XHLd9W7kFPWuSJv9JKm+FdL7fbBFQo8= X-Received: by 2002:a05:6512:20ce:: with SMTP id u14mr408701lfr.300.1623861233152; Wed, 16 Jun 2021 09:33:53 -0700 (PDT) MIME-Version: 1.0 References: <20210615011724.672612-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Wed, 16 Jun 2021 09:33:42 -0700 Message-ID: Subject: Re: [PATCHSET v2 0/3] perf stat: Enable BPF counters with --for-each-cgroup To: Peter Zijlstra Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , LKML , Andi Kleen , Ian Rogers , Stephane Eranian , Song Liu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On Wed, Jun 16, 2021 at 8:14 AM Peter Zijlstra wrote: > > On Mon, Jun 14, 2021 at 06:17:21PM -0700, Namhyung Kim wrote: > > Current limitations are: > > * it doesn't support cgroup hierarchy > > That seems unfortunate; there's no bpf helper to iterate cgroup > hierarchy? I couldn't find one.. > > > * there's no reliable way to trigger running the BPF program > > You can't attach to the PERF_COUNT_SW_CGROUP_SWITCHES event? I did it. But the BPF test run seems not to work with perf_event. So it needs to trigger a cgroup switch manually.. Thanks, Namhyung