From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B020C00140 for ; Mon, 15 Aug 2022 15:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbiHOPjW (ORCPT ); Mon, 15 Aug 2022 11:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbiHOPjU (ORCPT ); Mon, 15 Aug 2022 11:39:20 -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 862AB13F69; Mon, 15 Aug 2022 08:39:19 -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 4161FB80F96; Mon, 15 Aug 2022 15:39:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCB0DC433D6; Mon, 15 Aug 2022 15:39:14 +0000 (UTC) Date: Mon, 15 Aug 2022 11:39:21 -0400 From: Steven Rostedt To: Alexei Starovoitov Cc: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Network Development , Alexei Starovoitov , Daniel Borkmann , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , bpf , Magnus Karlsson , "Karlsson, Magnus" , Jonathan Lemon , Edward Cree , Toke =?UTF-8?B?SMO4aWxhbmQtSsO4cmdl?= =?UTF-8?B?bnNlbg==?= , Jesper Dangaard Brouer , Andrii Nakryiko , LKML , Linus Torvalds , Christoph Hellwig , Peter Zijlstra , Josh Poimboeuf , Thomas Gleixner , Andrew Morton Subject: Re: [PATCH bpf-next v4 2/6] bpf: introduce BPF dispatcher Message-ID: <20220815113921.5b3305f5@gandalf.local.home> In-Reply-To: <20220815111658.58d75672@gandalf.local.home> References: <20191211123017.13212-1-bjorn.topel@gmail.com> <20191211123017.13212-3-bjorn.topel@gmail.com> <20220815101303.79ace3f8@gandalf.local.home> <20220815111658.58d75672@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Mon, 15 Aug 2022 11:16:58 -0400 Steven Rostedt wrote: > > It sounds that you've invented nop5 and kernel's ability > > to replace nop5 with a jump or call. > > Actually I did invent it. > > https://lore.kernel.org/lkml/20080210072109.GR4100@elte.hu/ > > > I'm the one that introduced the code to convert mcount into the 5 byte nop, > and did the research and development to make it work at run time. I had one > hiccup along the way that caused the e1000e network card breakage. > > The "daemon" approach was horrible, and then I created the recordmcount.pl > perl script to accomplish the same thing at compile time. I guess you were not paying attention to my talk at the Kernel Recipes I invited you to in 2019. The talk I gave was the history of how fentry came about. https://kernel-recipes.org/en/2019/talks/ftrace-where-modifying-a-running-kernel-all-started/ ;-) -- Steve