Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4153574rwb; Fri, 30 Sep 2022 13:46:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Kcg9NzqSXBY0Gmqxx19VXR2HAhFlA06vr2fq367rXO3qYlKeQI2uWHMYVNcY/DKk155i9 X-Received: by 2002:a05:6402:3549:b0:454:414e:a7fd with SMTP id f9-20020a056402354900b00454414ea7fdmr9522310edd.69.1664570779004; Fri, 30 Sep 2022 13:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664570778; cv=none; d=google.com; s=arc-20160816; b=FopTV/zcVnjlxmeKcIeSfVEVcd9n2E1XJmA43YNWLcI54ymIp6cSTmxYrwPkQ3gFa5 rxuzwwJ9JMGPbjctASP07Ahsw2opyJM7er0EhZs3yj+v02BVtpppP8N6/NfKx1OltR/d MKWTooyXm5M232wbEnsYPeOYCc/bgwzBasiniZ0dLOEuUNYofQJbj+W8QDVGwwtIHwAk Nzgqe2LYQ4UrjHgN8g0B4ZIDGy2haDC68xj0sdSuEyIkAJyQhOyASPOzVLX/ldqDUTQO 4SPKNQHtRVmXOJGcZ9e+G8HHe3MmTwtTx922FnVW8FNXSUtQBN5x/2hjnZ4tR5WMtW21 fX8A== 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=ydbseSGCiGhWnegJ4/rTEcMK4rWRsSZqxah9FKyfgJM=; b=gaWr5EjtHNtZydk4j99TkDz8WlbdEIVGFrbZK7f9UoPKNoSZuXdPNWsFnRNFMQaGw4 mIT8Y1eMhSkeA44rB39qu/5wimNxz4FnhcZfV1b3R7aGZCLRH3RacsbNnEagpv1c8lR2 z/JAOye4Lb7FeX1Er6KYxR+WibMrJ9g6xAteRog1ybyz+G7uhQ27BPLfPDWOGK7LSn41 /VZLQUV5XdS56VLe+56CwfAPFD7HiddhmyTMPj+t7kzXbG50GJOEpozgntk4IT89s+TK +CqtjsYJKNwi1NUDOZ5AMdwk6bGV6sep+hct2jnjGphnHwPxOXCqLXS55WtOrsDUmavs UBQQ== 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 q5-20020a056402248500b0043dc00e0740si2870208eda.373.2022.09.30.13.45.53; Fri, 30 Sep 2022 13:46:18 -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 S231854AbiI3Uai (ORCPT + 99 others); Fri, 30 Sep 2022 16:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231963AbiI3Uab (ORCPT ); Fri, 30 Sep 2022 16:30:31 -0400 Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E70CF6C74B; Fri, 30 Sep 2022 13:30:30 -0700 (PDT) Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-1318106fe2cso6702606fac.13; Fri, 30 Sep 2022 13:30:30 -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=ydbseSGCiGhWnegJ4/rTEcMK4rWRsSZqxah9FKyfgJM=; b=bIzkqsn4783z8j1qQkimP5fgaAXpv2k0/E/2AfnEZ+O2bp9W8/RAjI55CbD/WDGecD TTKsP3NWGwwf4CLkPC4+m90JRG7d416W+0NF/V7yBzST5z8Zb1toOQWGo+r2YMrim71I bqAnsZbI1dBKBaWDCOHOf85hOcJW1NGsKWgbyi71nVo+as7Uy0FTCcwJ2elm0EdWa6gR cA1MlrGCp0TBHvjaPNajXNoQYKz5fkDUTRX3MdJK36CmpCvWb5Ml7cGGyJk7tXaVxjSV C0ZLHt8iA+5FG6ESzoxSD2agE4tHNIUNvrektQwIpY+QtLn+EQViGgW83XnCVjyXWqXC nw9g== X-Gm-Message-State: ACrzQf1t8UxW2+GDVcGjnviA6OLFSGfmYX2VqqKj2l+eUvbvx7C4MQAA 8CgB/2rPxBl6yiVH9afEcHqAZqCTWqs6XEwbzaqZj80h X-Received: by 2002:a05:6871:14f:b0:131:a644:7c58 with SMTP id z15-20020a056871014f00b00131a6447c58mr5957oab.209.1664569829912; Fri, 30 Sep 2022 13:30:29 -0700 (PDT) MIME-Version: 1.0 References: <20220922041435.709119-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Fri, 30 Sep 2022 13:30:18 -0700 Message-ID: Subject: Re: [PATCH] perf stat: Support old kernels for bperf cgroup counting To: Tejun Heo , Jiri Olsa , Song Liu , Arnaldo Carvalho de Melo Cc: Zefan Li , Johannes Weiner , cgroups , LKML , linux-perf-users , 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_H2,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 23, 2022 at 8:22 PM Tejun Heo 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! > > FWIW, looks fine to me and I'd be happy to route this through the cgroup > tree once it gets acked. Thanks Tejun! Can any perf + bpf folks take a look?