Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4241274rwb; Fri, 30 Sep 2022 15:24:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Q0QxkycheL8xFLiVErXd2Vau1AqFZ4m6vGoGVriVratX+p+HjQWCHU4Tt8e8eEqXpBb1i X-Received: by 2002:a05:6402:26d4:b0:451:280d:3533 with SMTP id x20-20020a05640226d400b00451280d3533mr9262718edd.316.1664576641911; Fri, 30 Sep 2022 15:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664576641; cv=none; d=google.com; s=arc-20160816; b=Dejo6fBPK/RQ2qBw8/HxLVskmAWSqdZXaDOTLubSHWztihactTNmz3Z0IJDVcxOxJS FIUGplcJq09L8pcvt5I1E+KxsKBDY7S2v3giXepCijv1iuYS+mm1AOsG52XgvNWVj1+6 nDQLzikwENJRQ6jSJU1zdk6mE7+QH0SnVaK2J306DzPpDH4CAFZ8xAbFO3zZFbSFy9M8 /xUMkT59+wQx7TN1c+eHklwC3+JLllafDWqw5srDAx6LpVICPMrFDMhZnh0cSLJYrcZV s873YTGQGNAQeuCwtVAeS8rkR1TWKqzZfbinIuWM6EfRyBIARpziXqvultkOVZVLxOyY Ey6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=XScEm+DuYC8Hlch7wHtQ1OIZ+cTh7jVexKgDloeMcLg=; b=PwI03UTzqflZCbx0fnfoydclz1m2Z+zuY5HQqsr1heMvgtpaLfYFUGYrodk5MNL7Np GppGpw2L6gSC8qRx/wgA1Z58SMVufLPlW+z+NOPUSmwewCe6wTpVeYccwBgeQWpESpzA n7vPJMUW1rYjKoEwoaB2mg7FXzRITBTtUzyzh+Oa89y8G+XwSRCsmCS/NZR01+5PlqGs ygXmNJoalH0QfXGesu+oOh8uY+tYhO2cpekURpSK9gOevBzVl0qHOewmzvw14LfyANBG OiYD1es3NzUaBrBeIo2ODkfnnh7sLN8gz5MN+LhPN6PH+RYp8XPji+7L5GIdvxbPeM1s 0cxw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a170906974800b00782b10a7ff3si2570433ejy.89.2022.09.30.15.23.36; Fri, 30 Sep 2022 15:24:01 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbiI3WLY (ORCPT + 99 others); Fri, 30 Sep 2022 18:11:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbiI3WLQ (ORCPT ); Fri, 30 Sep 2022 18:11:16 -0400 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8694712084B; Fri, 30 Sep 2022 15:11:14 -0700 (PDT) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-127dca21a7dso6941971fac.12; Fri, 30 Sep 2022 15:11:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=XScEm+DuYC8Hlch7wHtQ1OIZ+cTh7jVexKgDloeMcLg=; b=yuNno+LYadq20Pk5744APf6fbk2XZ9RAlmPHZyUE0Qc+5mYcRO8VM514K9zlA8aG88 QhMqRE04F+7JLF4fPbUUvedtZ6cgYDIcV8l+RoE4qZB6gG4zLvMfMUQJtmAEUE2dvOLM 7bGSVYr8mETMgRfU1g9c7OHWE1xMikcEDHfE+ahkGNCpOgDW0GuH9oieY1zczPO985tN suGNZgv9IZf/r3dylZMG4fll8MhQ0suDgY4OiNBwhUkFNbsLOLpNjRbDijHg2LyJUP1F W5laPP4ymjkdVEbpY1zRPaSdLXbbq8Lo4pjFQ84DwvV3A/8/DjlHkFVpEGwChSaTl/fs dEdA== X-Gm-Message-State: ACrzQf1F/FJ1/Kv9CaOf68WwhKuqaMrvrKWEDIdinB19gIn49WY9csrf WWdJLMfAIKFvwbzxVQ25Dsl3MuxbQ4qx5ibrX7dOtb4UpyA= X-Received: by 2002:a05:6870:a70f:b0:127:666a:658 with SMTP id g15-20020a056870a70f00b00127666a0658mr156984oam.218.1664575873758; Fri, 30 Sep 2022 15:11:13 -0700 (PDT) MIME-Version: 1.0 References: <20220922041435.709119-1-namhyung@kernel.org> <88915C51-33CD-49A4-A9E0-F5F5ECDEA0C7@gmail.com> In-Reply-To: <88915C51-33CD-49A4-A9E0-F5F5ECDEA0C7@gmail.com> From: Namhyung Kim Date: Fri, 30 Sep 2022 15:11:02 -0700 Message-ID: Subject: Re: [PATCH] perf stat: Support old kernels for bperf cgroup counting To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Tejun Heo , Zefan Li , Johannes Weiner , cgroups , Arnaldo Carvalho de Melo , LKML , linux-perf-users , Song Liu , bpf Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 On Fri, Sep 30, 2022 at 3:00 PM Arnaldo Carvalho de Melo wrote: > > > > On September 30, 2022 6:56:40 PM GMT-03:00, Namhyung Kim wrote: > >Hi Jiri, > > > >On Fri, Sep 30, 2022 at 2:44 PM Jiri Olsa wrote: > >> > >> On Wed, Sep 21, 2022 at 09:14:35PM -0700, Namhyung Kim wrote: > >> > The recent change in the cgroup will break the backward compatiblity in > >> > the BPF program. It should support both old and new kernels using BPF > >> > CO-RE technique. > >> > > >> > Like the task_struct->__state handling in the offcpu analysis, we can > >> > check the field name in the cgroup struct. > >> > > >> > Signed-off-by: Namhyung Kim > >> > --- > >> > Arnaldo, I think this should go through the cgroup tree since it depends > >> > on the earlier change there. I don't think it'd conflict with other > >> > perf changes but please let me know if you see any trouble, thanks! > >> > >> could you please paste the cgroup tree link? > > > >Do you mean this? > > > > https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git > > > > > Which branch and cset in that tree does you perf skel depends on? I believe it's for-6.1 and the cset is in https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git/commit/?h=for-6.1&id=7f203bc89eb66d6afde7eae91347fc0352090cc3 Thanks, Namhyung