Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1734439rwi; Mon, 10 Oct 2022 22:40:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM75L2PGBmWHlVl762aRlPVDAgw8WGSeBwzZM+qMxdC+btIhaWKbwRlixLx/eJXfXmzw96RJ X-Received: by 2002:a17:90a:d914:b0:20a:a3e7:616f with SMTP id c20-20020a17090ad91400b0020aa3e7616fmr24965760pjv.108.1665466838978; Mon, 10 Oct 2022 22:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665466838; cv=none; d=google.com; s=arc-20160816; b=yxgJzuNQ5NT+SkSmk6DEJo/xxxwgs4CLejmqnstH3SwyOwleQ0k46t57OxC3Kh9Kd1 iE17EQmc3l5HB5zGGUVXaqaL0qiOa4pdBSpoJ9afaNKbfAs56dafgL9k//7p7nw40cf0 6T4x9yVqaPKxMzM3folE5F4KdEH77skVNZfdfFoVTel8oSQzcbDz+bkmz30Rg9kAmyJK Q84M+NTMhSgft/AhMdyfw1BpwLv+OgOnNFeXpEpuOM7awd3NND3F17zBTCtH4lVmA/Gz CAhLSCK7O/D4wVKKWN8RQYO2vg1X9XGg4TT6cZEqPyttEHoUuNGvR/KYdvdVm/0j8/Qt QdgA== 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=S7Pyh/nHa6VqZh92DYyRutJXMCD1rt9GXfh4Mq4x8o8=; b=ck+g+MuGvPzaJaDqx2Pagm9DQr6hD7VyJufIvarh+0bCy+g2Fvkzb1FC5imMsKigsB D3lQb6YILQitY6OHOCGfg1cwJa0mJcFDdPT5iKX/ZQb6Du6Bthl5EtmJ0EoA4PUy8M3O BJPYz9mjrRXD2wrcAhnhsqnmQcqPGnPkPcLkuvi6oEEqAdP9sLMPQT39RthHXMaitbv+ 9cRxY1HoRJk6V6a7fMc1Syto5SBvclX9WK8nzzTE6OXvv1DYC14nF92+89kyUsXCPYAP pgae8fpDh2XDYRNEAyu9AJ1PwjmRuOnPMHvEZgsovJo8yVBkxC/WxvnZEJ1U+CfKRr4y 7yrw== 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 w2-20020a056a0014c200b00560fc686798si14593085pfu.47.2022.10.10.22.40.26; Mon, 10 Oct 2022 22:40:38 -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 S229621AbiJKFY3 (ORCPT + 99 others); Tue, 11 Oct 2022 01:24:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiJKFY1 (ORCPT ); Tue, 11 Oct 2022 01:24:27 -0400 Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C97A17E82F; Mon, 10 Oct 2022 22:24:26 -0700 (PDT) Received: by mail-oo1-f49.google.com with SMTP id s1-20020a4a81c1000000b0047d5e28cdc0so9321931oog.12; Mon, 10 Oct 2022 22:24:26 -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:message-id :reply-to; bh=S7Pyh/nHa6VqZh92DYyRutJXMCD1rt9GXfh4Mq4x8o8=; b=iVVFGNVInoubSTQv9YYMLZtEtJmL+Gj+yTZqBA8X19dr1B35a4tCFCRssmGqJMeQww IJKAlivCKXKuocHB2tXqXI/feyweM7tpEQyr+xiMz4yw2gcmYd2HKXDg0z5U/+prOzV/ GbJJO5MEtNkL7+VXdH1wWnAwm/TaqVhrqohIt4kgaXhAZqd6wMm/Bwqn7uJTFlAyPVSt uSm1D4hSBUH3Ro/MuaFHK906J+0/EH7iUoe7JO2vckYtHzZa1GQMrGcC32iA+mgYcaFU lWlgurqBtZ6qwVYwwI4ZdoJVkqkuc+Zzp/ljPG4iDScYqTgHINqGKequJniRzOZPO49U 0sNg== X-Gm-Message-State: ACrzQf0OJKVaN2T1KYd3UvVXktFJ/t6oNWx1qLoz4dffMApk9rVqHpDM m67mHMNhjx7RyMupQ7Su8lboIvDvfNXvJ2BapsI= X-Received: by 2002:a9d:6848:0:b0:661:a608:cbc3 with SMTP id c8-20020a9d6848000000b00661a608cbc3mr2213875oto.206.1665465866064; Mon, 10 Oct 2022 22:24:26 -0700 (PDT) MIME-Version: 1.0 References: <20220922041435.709119-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Mon, 10 Oct 2022 22:24:17 -0700 Message-ID: Subject: Re: [PATCH] perf stat: Support old kernels for bperf cgroup counting To: Tejun Heo Cc: Zefan Li , Johannes Weiner , cgroups@vger.kernel.org, Arnaldo Carvalho de Melo , Jiri Olsa , LKML , linux-perf-users@vger.kernel.org, Song Liu , bpf@vger.kernel.org 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 Tejun, On Mon, Oct 10, 2022 at 4:59 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 > > Looks like it's acked enough but the patch doesn't apply anymore. Namhyung, > can you please refresh the patch? I'll route this through > cgroup/for-6.1-fixes unless somebody objects. Sorry about the conflict. There was another change to get the perf cgroup subsys id properly. Will send v2 soon. Thanks, Namhyung