Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp886053pxb; Fri, 22 Apr 2022 13:26:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyrl7udzQZIGwwNUI3sxr6aThh2+EiWYsYDMLU/+BKumOTCqq6rcZxUVWqwsezV1EdZ/gQ X-Received: by 2002:a63:82c1:0:b0:3aa:93f4:7ea5 with SMTP id w184-20020a6382c1000000b003aa93f47ea5mr5231522pgd.573.1650659199676; Fri, 22 Apr 2022 13:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650659199; cv=none; d=google.com; s=arc-20160816; b=nLNGyMwCX9NMH3n+WPTIJquNYiPwG7m+T28YptYwEbJVzfMYZwBWl7n+LN/Wiaxy1x APKxrMV9ju/5yjpJI7CuaUbLdc68GwGOvcHXeVkD28feD0B3xntzb1BAr1T3PIRQJyo4 8Tyxte83cNbuEVD3pGlQfDsOe/QV4g8gEw6mAy5oJMtMfMWEcUrV679qqJrYQBGZ60iF Up2nRD74B2Dss+0P8RqvMU++AzwWhb1/hFW44W9oo293PNuZ9Y3VEY3iXKO4sK1c+dFS 57dLt2CZ0m2ZmzQ7ZKJRbNkHLyZhvs7R/42di5GEqrHu3E9rr3iV8c7meftO3/LSN7Vj aEqg== 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:dkim-signature; bh=I8KiB3k0qd5aGBnHBibLj4k3w/QF0UAZ/tRM/Axt2UE=; b=m6jtpLirOmahHah6HtuiFZbqAzg5k4iPf6I+K63XnZ2Pel4Q0veugOUpiWyZqP+MuY IAFB8OMFdAdCW1p+T3hTcEEk9po1pNDHejIEqwpPfYj3p4nRlHhR2BWUjwvyZG588LWG A2nVbcFEzjvZhsLB8o0yoDfGT9JdDiwOS+gZob6A/gHNaY9HEqw0CEdmSiRSAxN8QoGP sO4MxjDTugb4Qdll07LIYztIORTaQJwWiP/ubnbUE0hp2T9CX0bAcp/0X1LXve2cdLIx ZBp5W2JLMRSyP6jnV8u10dY51RXH4i9jxYTO2mqOGAq7S3xq3iTbeNMhoZ7Wb3dWxwIC K6qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=enp9BRHj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n8-20020a170902f60800b00155fc0b4904si8609255plg.234.2022.04.22.13.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=enp9BRHj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A369C1BB695; Fri, 22 Apr 2022 12:13:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234502AbiDVQ6R (ORCPT + 99 others); Fri, 22 Apr 2022 12:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449914AbiDVQ5o (ORCPT ); Fri, 22 Apr 2022 12:57:44 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A499A5FF0B for ; Fri, 22 Apr 2022 09:54:50 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id p21so9212827ioj.4 for ; Fri, 22 Apr 2022 09:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I8KiB3k0qd5aGBnHBibLj4k3w/QF0UAZ/tRM/Axt2UE=; b=enp9BRHjyw5GkiP09bboYtyV2m3NiwJ5+1H2BxdsNHb/CN6IJpazQ2Uq4gTIBUN00H HP+bL7VZap6/1+DNCTBdmMWCC9JjrWTIRdn3Q3HT6/GvqvEYpJk7eJSMZnFXLCi4LyR0 +2gXMbeJeSMtiiTuOlO1Ghq9qUxCexUXJRxazvFlr0RmzDMPwqML0cfCf1sAYbVxXhxp gtGmSfFMXj6zcMWeAdBPbW4EB3Ir80KXQ9t+WNiOm+D7i6VuEP/4IhVCOpBS0A6KVpiJ RwBqde7saG5FTGnSr07Ov7UedZk+UUVZ7D0q/l/2cE6EI4MkA2ShUJmiGeILPF5XcJUJ T/Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I8KiB3k0qd5aGBnHBibLj4k3w/QF0UAZ/tRM/Axt2UE=; b=F8hbWZwPh5Vg52InFlexw74H7VfMi2DQJgvbNgQ+7L8vLlhiXHlVQOemr3h9xBpcCB 1dWP3utLZGraaJbBJ5pdLczGTjkKoESwB3XsY8+9r/0zjJgF/ERaoh89kNbyc6i73bGj ZISsjc2WzC8zm9RI8Bf7l6tCgYAGym6d0cc53saU0OkEyhqOt5JZFmRJR4ygp7MQLb5N Ix0N+vzATvDQPNyeXn+dEgdw14kNySYEsAHE/zgWQXd/mfkCV/crOWLAGd6f84zhq4Sp NsaZymH80i7NVNQjuK2NwEp+OqZ52y6YSRxgX5uNG6xL4R3L1i7pYurHVduJi52i7c1H D93g== X-Gm-Message-State: AOAM530ygIZTXHenKYQactDfr5ErgUOrWwg39fZ6xYsyfuy3oL7BBtlD 2GMn4wLWGG6Ak9C8eWK57+QvvoJ4yHkXZMYd0ffsfVrMJhY= X-Received: by 2002:a05:6638:3393:b0:32a:93cd:7e48 with SMTP id h19-20020a056638339300b0032a93cd7e48mr2509483jav.93.1650646490086; Fri, 22 Apr 2022 09:54:50 -0700 (PDT) MIME-Version: 1.0 References: <20220120162520.570782-1-valentin.schneider@arm.com> <93a20759600c05b6d9e4359a1517c88e06b44834.camel@fb.com> <20220422110903.GW2731@worktop.programming.kicks-ass.net> <20220422115557.0dc5cd86@gandalf.local.home> In-Reply-To: <20220422115557.0dc5cd86@gandalf.local.home> From: Andrii Nakryiko Date: Fri, 22 Apr 2022 09:54:39 -0700 Message-ID: Subject: Re: [PATCH] sched/tracing: append prev_state to tp args instead To: Steven Rostedt Cc: Peter Zijlstra , Delyan Kratunov , "valentin.schneider@arm.com" , "bigeasy@linutronix.de" , "dietmar.eggemann@arm.com" , "keescook@chromium.org" , "andrii@kernel.org" , "vincent.guittot@linaro.org" , "akpm@linux-foundation.org" , "mingo@kernel.org" , "linux-kernel@vger.kernel.org" , "rdunlap@infradead.org" , "Kenta.Tada@sony.com" , "adharmap@quicinc.com" , "tglx@linutronix.de" , "bristot@redhat.com" , "ebiederm@xmission.com" , "ast@kernel.org" , "legion@kernel.org" , "ed.tsai@mediatek.com" , "u.kleine-koenig@pengutronix.de" , "juri.lelli@redhat.com" , "x86@kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE 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, Apr 22, 2022 at 8:56 AM Steven Rostedt wrote: > > On Fri, 22 Apr 2022 13:09:03 +0200 > Peter Zijlstra wrote: > > > If bpf wants to ride on them, it needs to suffer the pain of doing so. > > And I constantly hear that BPF is not an ABI, and is not guaranteed to work > from one kernel version to the next. Right, and that's true in terms of expectations of BPF users. But it's also true that in pracitce people's tools have to keep working across multiple kernel versions and we've developed multiple technologies (e.g., BPF CO-RE) and techniques to allow people to adapt to kernel changes. See [0] and [1] for some of the tricks people do in real production tools to accommodate kernel changes. Some kernel changes are easier to accommodate, some are harder. This particular one, though, is pretty complicated as no function or symbol got renamed, so it's much more involved to detect changes like this. But ultimately people will do that anyway. But the ask here is, given it's not too late and it's trivial to avoid this breakage in the first place by reordering function arguments, we (BPF users) kindly ask to consider doing that. Hopefully this trivial change isn't hampering kernel development in any way. [0] https://github.com/iovisor/bcc/pull/3917 [1] https://github.com/iovisor/bcc/pull/3747 > > -- Steve