Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp629013rwi; Fri, 14 Oct 2022 06:46:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6FJ5JD1Da2sTtydmWWtJtW9aReQ8xIsDarn+ZA4l2jB4ir1ljjxcq+hWr1pELyMDP1Li6U X-Received: by 2002:a63:d741:0:b0:459:27fa:be82 with SMTP id w1-20020a63d741000000b0045927fabe82mr4622268pgi.244.1665755196613; Fri, 14 Oct 2022 06:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665755196; cv=none; d=google.com; s=arc-20160816; b=nDcUYd0YI6fLuWWKxEoRgCDXZYvIv3qIzwQJoNMpy0/lvFJoMNHg3M+6C2PVRsKq8T CRGaWKMT4axddm4Q/XdnTpSaAv/V8T6DZt2BOTtRlI7O/kUDuBAIF4EfSijdTrFKW7C9 cTnq82uGn/HCs8NpekoDDXR8ebT2QeLKhQkJ3OitBpLyuuhUETr2B76qRV4NtluBLUdt 8ww9l5mVW9NiCaV7liKc6uM8X9hBmMjGghhqnWYXRB4Mffy5waV2PcJp3XTJ2lj0F7My CnKZkxCXJWZuW39FjLc8jZvWCH6Gubupdz/L4VLRuQaPtCc4Je7e0iKZHy8FQeJiKg+7 uzfA== 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:from:date:dkim-signature; bh=heq7ydNLZ5b0f5sT8dyhgh5uJnAdKjvzQCcVh2zNWi0=; b=DWXJPoQWEnE9oc2oVb66goFgOKj4hjX/aKSx+w3RjykVjW98aReiMAFXOlhKYk7c9b RYi5gmfk+BHY6Odl+psZ8mO/kUU902JC9Q4qQWExETpoNxnEp/XVMlkNS3wHfa4aVQ1D lLnSuEYOybS9D7Xy/locMYCewdsw70DvWqvi+IlXaF+Yd0Fopx6N1MjhZvdos3Poxmwm 7IkVx11QnZ5WRD1zun2WZ9CEUCi/0TEWZLfyZ1Zv7Rzr0ryVOBP2Y3PfozV4DDLbxVi4 T/Kq4vU1MgKkY3O0fKRMJyBvg6m7mJu4Ccma3XoqQoJbdmlNx2t5tv2RXLzQhPwzl67a +bHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QSMyBkrD; 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 a20-20020a1709027d9400b00172d0e07c02si2665012plm.392.2022.10.14.06.46.24; Fri, 14 Oct 2022 06:46:36 -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=@kernel.org header.s=k20201202 header.b=QSMyBkrD; 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 S229821AbiJNN1q (ORCPT + 99 others); Fri, 14 Oct 2022 09:27:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiJNN1p (ORCPT ); Fri, 14 Oct 2022 09:27:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F4E21B76F6; Fri, 14 Oct 2022 06:27:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9608D61B29; Fri, 14 Oct 2022 13:27:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD380C433C1; Fri, 14 Oct 2022 13:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665754063; bh=Mer19hBhh2VO610s7L+5FvRU6lA4fQAb3tmDtTWR/JQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QSMyBkrDW0HP2yY/TqJk38iFPqW3PhdhSf8o4Ma1vvCup/yA3qpniqx3AoaGRow6f PFBot3CSD3KUgKSSltJrF0UJU9pDn1yZ0icuzKeKSjtXsqoPnRocW36KDXEvuYeZcq F/rcnbjXCNa3TB3QeOoGH8kbKp1tCjIW3ySbEJ/lkDW3OV0xYbB1AOIBY6evPI8Q0k 1DKnN5nqTOL1ymnU6f91TW+u80krsokFzeZy7KDxIeWPFK5K7OOOmks9c/apQqcMKu b6DfBCG1ZTcyn4GZKM3SQVQq/paEGjX3hpP3hiWW4vGwvxBbU8ZaAsN6g/V1BWGtYS mTTupBSRKzoGA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 7C07E4062C; Fri, 14 Oct 2022 10:27:40 -0300 (-03) Date: Fri, 14 Oct 2022 10:27:40 -0300 From: Arnaldo Carvalho de Melo To: Tejun Heo Cc: Namhyung Kim , Zefan Li , Johannes Weiner , cgroups@vger.kernel.org, Jiri Olsa , LKML , linux-perf-users@vger.kernel.org, Song Liu , bpf@vger.kernel.org, Andrii Nakryiko Subject: Re: [PATCH v2] perf stat: Support old kernels for bperf cgroup counting Message-ID: References: <20221011052808.282394-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Em Tue, Oct 11, 2022 at 06:53:43AM -1000, Tejun Heo escreveu: > On Mon, Oct 10, 2022 at 10:28:08PM -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. > > Acked-by: Jiri Olsa > > Acked-by: Andrii Nakryiko > > Signed-off-by: Namhyung Kim > Applied to cgroup/for-6.1-fixes. Hey, I noticed that the perf build is broken for the tools/perf/util/bpf_skel/bperf_cgroup.bpf.c skell, so I tried using b4 on this Namhyung patch, it ended up getting a newer version, by Tejun, that mixes up kernel code and tooling, which, when I tried to apply upstream didn't work. Please try not to mix up kernel and tools/ changes in the same patch to avoid these issues. Also when changing tools/perf, please CC me. I'm now back trying to apply v2 of this patch to see if it fixes my build. Thanks, - Arnaldo