Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2128130rwi; Tue, 1 Nov 2022 04:18:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Ha36EpyfGthWzELCiCmz6UZj9t+qmm9LGu9SMninhH7Pt5cWaDKIsCM2vx2xdYHNZZG5j X-Received: by 2002:a05:6402:358e:b0:461:ea80:fb61 with SMTP id y14-20020a056402358e00b00461ea80fb61mr18275939edc.356.1667301500631; Tue, 01 Nov 2022 04:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667301500; cv=none; d=google.com; s=arc-20160816; b=Zg/9a6FTtoxM6V90p0vJDSpHT3q6Wt3krMGh/kXxMv6w79hZUGw4W9oDR7ygLnrVgw pcNgHHWQmJr4/KPMKAYjW9Re3N/yNfrlIVbvUSerK9tLCsnanhzc5OJzmv0kHCrnIOQw 7gfmU08/jEY0g43zm/PXNXf6xr39jC2JHdVWP/3w3brMSiWi2J52F38qN51Bu2CqFeVr KTJCSXp/q/5mozCOMYw1jIzfnsAB8eq8NacAEDr7IQbCfKX2oWyaQq6UTPfo6nsj5wj2 ln9plJoSjosItNkMb1SeUutFFKW3Fh16p+59BR6UsgDlw4zBty+43zBFWKOd+y7YT1s4 UWCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=9QimffrtKLp5FkN7QaKiLOm/BnsUMeroyyDy8PQ4PPw=; b=Z6u2+fHyo/juVAn98tXfoSwd1difyDjNrxn3QmbnjH1sy+KZD8W+GsvD14NKT6PLap cP7tEyk/S3WlTC4wYOEVE3rP6pYY+kNZaBwaComGK1J4k6JmkHrdpZNB70SgvrIIfc3R ovS2qOG5NkyiyRTzVA6qp/NdHoCHVkgjktoGlpZgojADc/J+MMUxTsdx8Z4JwhKDAVgC kUC5/V5Pl8BMjEmeuU6dssPBX85xGQ36WtuVpz2pDnXCAKA4uNSg+5rGq1Sy6wVYnD4c tK/2Mqt0lJqH5yh9XdhMmECyq/9w0l4/RIshqV50d2edScBn4OPEVNxtPTmMx6H9kixo WwPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MO8PR9MV; 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 i10-20020a170906264a00b00741a18d4a5asi8236004ejc.994.2022.11.01.04.17.57; Tue, 01 Nov 2022 04:18:20 -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=MO8PR9MV; 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 S230074AbiKALAo (ORCPT + 97 others); Tue, 1 Nov 2022 07:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbiKALAc (ORCPT ); Tue, 1 Nov 2022 07:00:32 -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 13CF318B1C; Tue, 1 Nov 2022 04:00:31 -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 A74E7615B7; Tue, 1 Nov 2022 11:00:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE9ADC433D7; Tue, 1 Nov 2022 11:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667300430; bh=Kj1eE4Y197ou0E8+vB3UV8meREwlWjE+4YDIl8CuQhU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MO8PR9MVgAOzqOcK6/OciwNYrU2zaC+1PiT2tvIWdsH5I0U8nOJDpczs5BtdYDnlA 9IqOLs3k3ZGWZNLusOm/DI1U7s26PbmjXa3s3zOgO+9RVjG0dwmuJq6+9uOED1sEuQ sSDwA10ffYZ9N/Ttv0ne4iZW+SYZ+vU/tNvJ1Qscq4cdGdXn7dR8tRzi/VLq3O4M2b b1UwAlNQz6b4k5hl2TYGIOAZgnxaLdIR3s6Vj6PJo5VCK/Q/lYhMfFmm9BJtHnN3W5 PVXDkf1m/ScOEyqrv6RvLeNYQDCIPBdoCA+VvpJOwVdRbop/WtR4xEVirM515QB4nN SrxDU34wIFtBw== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Jiri Olsa , Peter Zijlstra , Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= Cc: Jiri Olsa , David Laight , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , bpf@vger.kernel.org Subject: Re: Linux 6.1-rc3 build fail in include/linux/bpf.h In-Reply-To: References: <439d8dc735bb4858875377df67f1b29a@AcuMS.aculab.com> Date: Tue, 01 Nov 2022 12:00:27 +0100 Message-ID: <87wn8fszw4.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.2 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 Jiri Olsa writes: > On Mon, Oct 31, 2022 at 04:21:42PM +0100, Peter Zijlstra wrote: >>=20 >> Does something crazy like the below work? It compiles but is otherwise >> totally untested. > > looks good > > it has now the ftrace nop and the jump to the dispatcher image > or the bpf_dispatcher_nop_func.. great :) > > bpf_dispatcher_xdp_func: > > ffffffff81cc87b0 : > ffffffff81cc87b0: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) > ffffffff81cc87b5: e9 a6 fe 65 ff jmp 0xffffffff81328660 > > tests work for me.. Toke, Bj=C3=B6rn, could you please check? Awesome! Much nicer!=20 For Peter's patch, feel free to add: Acked-by: Bj=C3=B6rn T=C3=B6pel