Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp811946rwb; Sat, 1 Oct 2022 08:55:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7M42OG9+VRYRbVebTxKo9hB6PiNyu18hxJFQmOXoN0Ogceiu9eChJdoeuDC8bMs24XcIlD X-Received: by 2002:a05:6402:1856:b0:458:db1e:20ec with SMTP id v22-20020a056402185600b00458db1e20ecmr78324edy.14.1664639739117; Sat, 01 Oct 2022 08:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664639739; cv=none; d=google.com; s=arc-20160816; b=fBfKG8yjjCMyZSzUy89nDLtlPQs3vVDUOiNKJ1+ibL5NsroKAVS8PUpGuTYTCvJ74J akCG965fzHKs16fkB+6xJYwV3fnifuLBXZq4yraPBx+ZxryL/MGRRaNxhHV8HQum3Nia 8q740KZvjOOpuNwnLA5wPnBeQYRVqVHkZazkzzkXAFDzqBJgsdwx6B4qF/f9iwRsMYCb /7V9Oc/tfDax+XjEcHe2oXyvCiFkiQmjeewDXopwHr4piyoHMnZrHGponwlUShtPIOsj qMROpJh/GzUWAnjNC1yrlhunCQSMte27AZ0jVwfc5lUyuDKkFqxq8uTujN7UFhcfhvKl wOdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=S6dQsVfxGBhLNZzfxTxMcZmUo50zQik/XnIunjEq2WM=; b=Dzm3hIl4j5/+wfN8rEXpDxoIiKAfd7ezoDB5v/iNMhxrn9cLWYgThYcwlFp/aK8+ht lyK+mM2wczlt1H8pIp2XQ1uMR+rRZIj/8+3+wrHtKdTjutgo4j50S0mnfeVAfDOf5Jbb DmdSe+i5u2IPRvZE7ebSAXVLSXloTu61O3JPffB0Fa2I7/q+uUXygJvbtzoUdEQkYEth VwkZnJPwS1T581QmQzJ+VX8LwlI8tcNqJ6qjT28ooT37bu7DrNhNyZJx2yaLVIw/mSsS LKcaDe+otCTEXPMTvrpBN7SHvWM3/3XeBMOJEQJx7XKqFvP3Xco4nRWz5bcdLO+9abpU lfEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pFReg0bT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb31-20020a1709076d9f00b007788260dfdbsi4021989ejc.862.2022.10.01.08.55.14; Sat, 01 Oct 2022 08:55:39 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pFReg0bT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbiJAN6A (ORCPT + 99 others); Sat, 1 Oct 2022 09:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbiJAN57 (ORCPT ); Sat, 1 Oct 2022 09:57:59 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F8E54E622; Sat, 1 Oct 2022 06:57:58 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id u21so5078458edi.9; Sat, 01 Oct 2022 06:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date; bh=S6dQsVfxGBhLNZzfxTxMcZmUo50zQik/XnIunjEq2WM=; b=pFReg0bTnNJkev/4BKPuiVH6oyC8lSX9zxw9HhBaHcGwAC8ucCHnRGecOvrhrS0M1Q 2CjU+x9UhxVWJqGk8bY4wYE8rB80j9QW9gQ1lSXT+nLwxggdZprZUmrP78grsh79jL8Q 5GwhwQ3MqfHd+eIdp47w7DXwqtCp6GBB3Qf1ox5ungEAkszk0nSwqE9apK26gw8eQhSV aj5DZD7SgSQ9o0YI2iuwzWZy+mra7/BbMZGOtm6TAFqFnDV9s7KwOrrUJa7a/N+sU0NU VcN4idox4DaIe+AvlpUsjM/pTRRtkeuOS8fMd0TU/lBK3EgylhermRQKD9JHX8pKHkSd al3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date; bh=S6dQsVfxGBhLNZzfxTxMcZmUo50zQik/XnIunjEq2WM=; b=45wVfU/q4i3ZkGBPbudrX6+r7fOTlF6qgcmuWjHiLbJWhs3V1hHtKhK/djTyyS0rdJ N9lqt5nsSGvf1jyFnDTgdfwO+JGpR36QJN1eXDspesFIZNcW/f0Iv7DU+qHLMMWIJiOW 9y805Yv1lPkY0e5rcvLP75tGBx3H56+jZVd8Vl7IFy/TSUGq3vDdgBUXAMtlGeUFdYIK ByXcQkOZJ4XE/hfCRu9v8nAqZFBTEcsG8kOiyTRXC12oELv0PTTplLPphtyP4+KxdTHl E6w9bUujaR43eHYwVu1u5AXvNVgHVcQxQfbA0A7Txe1ALP6FmSn5orZw+uLc28/nYcos dMDg== X-Gm-Message-State: ACrzQf2asb8DYVRI7E3zFp+0DYF+yuwQVefAd7MImXaZKIfmjq0TZ7zE MPkxIfWZVSy67Dv0RfXFL2g= X-Received: by 2002:a05:6402:5cd:b0:446:5965:f4af with SMTP id n13-20020a05640205cd00b004465965f4afmr11532730edx.12.1664632676443; Sat, 01 Oct 2022 06:57:56 -0700 (PDT) Received: from krava ([83.240.62.159]) by smtp.gmail.com with ESMTPSA id d2-20020a50fb02000000b004580296bb0bsm3578164edq.83.2022.10.01.06.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Oct 2022 06:57:55 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Sat, 1 Oct 2022 15:57:54 +0200 To: Namhyung Kim Cc: Jiri Olsa , Tejun Heo , Zefan Li , Johannes Weiner , cgroups , Arnaldo Carvalho de Melo , LKML , linux-perf-users , Song Liu , bpf Subject: Re: [PATCH] perf stat: Support old kernels for bperf cgroup counting Message-ID: References: <20220922041435.709119-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Fri, Sep 30, 2022 at 02:56:40PM -0700, 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 yea, wanted to try that.. I cherry-picked the 7f203bc89eb6 ;-) thanks, jirka > > Thanks,. > Namhyung