Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp624626rwi; Fri, 14 Oct 2022 06:43:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Xqj4eENPrOoMpHfbYuaMBhNLBsi0b3zpet11QeuPr9hr4FdpGFDtIHAiBYIATJ+yZrbfD X-Received: by 2002:a17:906:8a66:b0:78b:da52:b752 with SMTP id hy6-20020a1709068a6600b0078bda52b752mr3586958ejc.365.1665755010229; Fri, 14 Oct 2022 06:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665755010; cv=none; d=google.com; s=arc-20160816; b=dV4ZBsx25c/0WJLFPLqPlC/Nzcb17rI5Us6p4pOiOTJ3l+DFx0oSglSPihbDhho1Dd hO33gKp9PncV8+D1S4vhn0FwXg/u9A3GkGI3c+/8NS6L5sc3ymPK33CVCBenEpfO7DWM H4lfVKyQg/LvFZ5VSuRojncAhUkqrmmdgzDi/pDxXDL1uXqbLxNQU+YmJjpqAp/4cx+w g/IIPxOMIWHf9fLQaP+UhpuqAJhpZgXnfsOLKPUm2d3Z2aWbadVfHvDKDI0yRn04yKRu k7NO4C2B2kOG5Nh9/vmawHdm3ryzAwKshkObTl53hjNoFuBucK4E6/Sr0vHF/GyWiLpI wrzw== 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=UGFMNLd+qse26SvhgkOlwCF2sbByYppyO9Aynpez05Q=; b=IudnzhWSdcnWXFVWHA9KwQjQxFwAC9qtim5qCW8T/7usZyuLD58oamqm8wDVHkjvXQ oVdxHes2OuzyUdZOAcx03NnX/zx8zWX3rSTjd//mL0ZDl9Kpx24aMQZWOKJyhUW59ZGB 7YKldRLTBA23SrpYJxOURBYKuRo93ZNqJvYGX4Fv6MKnfscpII0gt/ddRG79i1ra+U1C /s09iplO43UZQHFuOF/gND6zNpFTU2LfU4HoseTP5zRbOl9kbU1WL6gYoyxlBDbGyA/C pPGH7+UuQxj7cCyUjeeQPiFqtZOpDIBlGOD6bnfD6yVRBsG9I+oxDzpM91AA9maLIG1L cR8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F5k0CxXm; 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 xg11-20020a170907320b00b0078dfdaa3fd3si2674219ejb.935.2022.10.14.06.43.04; Fri, 14 Oct 2022 06:43:30 -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=F5k0CxXm; 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 S229602AbiJNNbA (ORCPT + 99 others); Fri, 14 Oct 2022 09:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiJNNa6 (ORCPT ); Fri, 14 Oct 2022 09:30:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02D429CA9; Fri, 14 Oct 2022 06:30:57 -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 ams.source.kernel.org (Postfix) with ESMTPS id 77F2FB822E8; Fri, 14 Oct 2022 13:30:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F84BC433C1; Fri, 14 Oct 2022 13:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665754255; bh=mINcMLnVsgheBTTRF+mKEseQpUsGdZeG1g0fkhbY1s8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F5k0CxXma58+OUFwamCyShctCfhZ4boPFlcTKXUDVo4dAsKnwDpkQJDIftCIIEgOw SUYYg38JNhtp85t0DPyanIjStUgYbL9bPCykHcwPItgz04Uj68xFIHpd8omJTGvd6R 8dIBeSS9Du1WD4R8RpxsSs7pbRhh4Qw42iZsqRIFGq8CJkhpPpsmeA61h60IGsb4wZ HS6W++YWokOJ6lty9mMD5VbBuaX+IYVtn/VjkLfaQvpYsmNqIcDCgIREgAwiGM68l6 YPiwN/0brn4bBo7l2WtuYSNF3tdtoGSv4oJe4yZU3bZCdOgLwRe/qAaMA86wiiaLo/ z+VMAbtM9OfQQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id A423C4062C; Fri, 14 Oct 2022 10:30:52 -0300 (-03) Date: Fri, 14 Oct 2022 10:30:52 -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 Fri, Oct 14, 2022 at 10:27:40AM -0300, Arnaldo Carvalho de Melo escreveu: > 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. Yeah, applying just Namhyung's v2 patch gets perf back building, I'll keep it there while processing the other patches so that I can test them all together. - Arnaldo