Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4226337rwb; Fri, 30 Sep 2022 15:07:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gVo4SGqJDe6AJTpDILyFgKfpJ5Xpd6O67NsP/VsmHCNmTKShQshRFU/9MbHu0JmwAgLiq X-Received: by 2002:a17:906:401:b0:73d:af73:b78 with SMTP id d1-20020a170906040100b0073daf730b78mr7904466eja.122.1664575671284; Fri, 30 Sep 2022 15:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664575671; cv=none; d=google.com; s=arc-20160816; b=Im8bfM9QjkxgIljiRt4jtrG+jQOW7mberx/H1H0N8S+3DLy6HjsjaLZA4bLA6xnPYT qZYSIddamibSYm8sAjwYc566y5SQTr8j3sKORTd0rdCtvcQCHTQqKa1QNvfjSmRWJ9c1 Cb9/o4w9nBMBqJRoYEBgzevuDqA16lVn5+eoz5c+YcJfGLyYn/IM47gub/Jk/i55xLs2 ks/S6PzyxPyLWPVEfLgaG2b5BcKx8E829DUvoyY5/xr7VhNw4WeTsVsuOHelNejTB1UF 6DcshySfSUKXeOeM4t0FHzVL7bthfTelUViqYSDsUYgDEZgSp+8cQ3sISI+OOSxO0WtS GJXA== 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=SHZXv7fnk7yZA/aI9ZkjN8+8GPWTiYo1+x7IglxTMXc=; b=G5CctqpS34eQVZRFrdWB2AyRVay+MGzOVKYY95OWMREVhjNi7drt+JGRkyQAH18R7i hc2tX5k0LhoNNuB9o/t1cawsh2lxY+mSKXHBKUL+6SZ5Q0PVZoYfHLpA387Kk4k6S82e pQe8wyrcn/kPNgP8pvcHkPOOIEW8LDULhkTCp56QdU/GAumDMYUC+dE0u+MOp3mRNV45 rcrDBSNOUfDtJdsflOv6Dqi1f4X4a18IA76QdTPoEFgb2YPvWyRi5WRiA4d4PpKmBnta xxJrysLM36Cljy3L767z2uiJ58S+1g1SCI19Q+QyUlnwxIkUcpvOrXEMeqmiOJxGPUTD hf9Q== 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 b1-20020aa7c901000000b00454b7b9bc7asi2392010edt.320.2022.09.30.15.07.26; Fri, 30 Sep 2022 15:07:51 -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 S231856AbiI3V4y (ORCPT + 99 others); Fri, 30 Sep 2022 17:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbiI3V4x (ORCPT ); Fri, 30 Sep 2022 17:56:53 -0400 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42546114028; Fri, 30 Sep 2022 14:56:52 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-131b7bb5077so6966537fac.2; Fri, 30 Sep 2022 14:56:52 -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=SHZXv7fnk7yZA/aI9ZkjN8+8GPWTiYo1+x7IglxTMXc=; b=4yXfcXMDRyTJdYMf/i/yc79kyTxCsr5194UsLv/YwsWhhMwgAbw9nbUSGNfiefbg7j 5halYyabDgNLs9Dfi8t5pw5ArmjjY+kfpvVY8X6IxUCgU2NxwkJx+A6UnBhVIfpfTChi 4boCj6n27TWv+bFeF3f+j8x85gfZphDNLL+2B07Nwxd6ZSs4bKrCIvo1OHWskX5XIQ/u EouLsU12WEK4tTzqY1pTRh2SNHkWbcnqKhnnTZZ15RfYxERi4lUCNaUMhUJeV8I4t69B yJBJsnB1YhVphtpndgx7DSTfk9Mf44MnnwVd14M+wkXOEwdI3c1RPI6PKzGzL8Oy20CW sG2g== X-Gm-Message-State: ACrzQf3d8oHrsH7fhSMUNJoOPIVGtWofPr2L1XwUZI3SBy2YKF/05X25 1NNoNNoFGvFQ1pYdD3yDCWa5WbZB305fcp2PpY4= X-Received: by 2002:a05:6871:14f:b0:131:a644:7c58 with SMTP id z15-20020a056871014f00b00131a6447c58mr116486oab.209.1664575011561; Fri, 30 Sep 2022 14:56:51 -0700 (PDT) MIME-Version: 1.0 References: <20220922041435.709119-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Fri, 30 Sep 2022 14:56:40 -0700 Message-ID: Subject: Re: [PATCH] perf stat: Support old kernels for bperf cgroup counting To: Jiri Olsa Cc: 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 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 Thanks,. Namhyung