Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp176060rwd; Wed, 17 May 2023 16:45:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4OhCHLnfe19b4GPtAQkeC3g0LXZh14d1ie8egHu/Z56Fx7RHAc1EIFlmsii6bxgXgHULMD X-Received: by 2002:a17:90a:8cc:b0:24e:113d:db82 with SMTP id 12-20020a17090a08cc00b0024e113ddb82mr608340pjn.8.1684367150850; Wed, 17 May 2023 16:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684367150; cv=none; d=google.com; s=arc-20160816; b=x2JAGqcHfM6FVo+OXpGGD/3R7BVsuK6CcbX+0aiEh5EiY9IxK4JCR6gdB6jZ1zjVEv BinqudpTCA9DffrcCZuYzVYP4m4M5AUwYnvlcOAYSJOYsyTHutN2qipOqL3B0rrNYowO Jq6VYWX789mHKsOgQ+XmHx9w5kub084nlCBScttrJK1oWCiYJwKplGgkzcVABUsypqZR YfdUpKybSC4CT0GhhnOIht9QmOEobK9+bVS79uYtXmjBz3p3FcBZRenp+Xj4kF7RGrtD 2Pw+NyXlLx5zM7/LPY/R8nYL1zpbA4XOxXbmsY7GdXqrMi79w06CMe2z3T75wn8XTuaK p01A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vk6cd8LcbzAJxt5N/GDDi+PvU6BaObHMv6cAraPkag0=; b=lrcmxCGpqKQZvYFfvfsEyV2B9IgUUQCP05zfYqRJm0+rC97B6Tn9umQ9MAG+Nb4Ish ENipGjZMHbRjEtp4b1l1/DTRcw6Qd4w/VNMDah0GQtwZBC0Kr/neh/6F3AUI173O7CIX Jmg/BAut3dFG5vNp5UdsHKlIOQ6XaZiKo+QIXagZJHHKtYZnXHZcwVBqcFegYdViNXRf DXx9FPw2q82d0sTb/SA5Yi8+9LCO588+vS9+u7vWUlKkprXcyOmD0rEQnIdK/UfCklgk HDiOCSw0JhwxQK964XQgAzRlUo0Ha+PQfD+WxK3Fqz5AJvhftLw2vu5qxOPc9o3m+TKr KI3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=L3qjB3Va; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a17090a470e00b0024df9561b5asi251370pjg.143.2023.05.17.16.45.38; Wed, 17 May 2023 16:45:50 -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=@linux-foundation.org header.s=google header.b=L3qjB3Va; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbjEQXPH (ORCPT + 99 others); Wed, 17 May 2023 19:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjEQXPF (ORCPT ); Wed, 17 May 2023 19:15:05 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF724213C for ; Wed, 17 May 2023 16:15:03 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-510d1972d5aso1840512a12.0 for ; Wed, 17 May 2023 16:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1684365302; x=1686957302; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vk6cd8LcbzAJxt5N/GDDi+PvU6BaObHMv6cAraPkag0=; b=L3qjB3VaqsqlOiGB5yeTiiPsIIfhodMmHKQY2F8CmzC2L7OHTbVab0xh8JeM0wAPRf MVnA11JyPXHzfj84mH2U6ojLkg5Bs+WuZdXTkNXfkEFxQ3AqIyqzUyF4jEc8wFX0MnLP qf/BBm0TbuUJvdeQBAKk9cgSNfVYQQ9hV9DHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684365302; x=1686957302; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vk6cd8LcbzAJxt5N/GDDi+PvU6BaObHMv6cAraPkag0=; b=LV7ycN5ssjLGOdUzfbs46jJOurTbY2Psj6eZI4MW38G6pTP8pY4px6FzGZO3PT1YyM Cfn6KG3oXsvBaOrgnYL9jp71WU+Q3uBRQ37LxXjpaNa1mXvsXPe9HYKfBQcAgLbPW0ar BpYmnvd1zlwaKPv+JV1TJQNwiTjeN1bJjrRbTSZdODbxXiv2SHYzwy2qHK4N4lagBEY8 x+lXw1e/1SzO+zB5P9rS44vDXryUYESDud4yDQkKgclcwsPeU0RikxxvOz9+ay89gHG+ kx847AcCuzxkhnF/QAn3YztJmKnjSye1dQOdBBUNkhCP6Xo3K5x0GC5m/ZmpBHDIcjzl hEcQ== X-Gm-Message-State: AC+VfDxkfmxraIigkTVe2H0onr15s4Ql7NcVKF1BMG+DGm+DLa0Dgpbu 4z9vgUT5fBSudZBk1TTazzJHZfZaqnb8H/mdwkjwbiG5 X-Received: by 2002:a17:906:db07:b0:94f:6058:4983 with SMTP id xj7-20020a170906db0700b0094f60584983mr33862855ejb.76.1684365301944; Wed, 17 May 2023 16:15:01 -0700 (PDT) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com. [209.85.208.53]) by smtp.gmail.com with ESMTPSA id y21-20020a1709060a9500b00965cd15c9bbsm161858ejf.62.2023.05.17.16.15.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 16:15:01 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-50bc456cc39so2094310a12.1 for ; Wed, 17 May 2023 16:15:00 -0700 (PDT) X-Received: by 2002:a17:907:c26:b0:966:238a:c93 with SMTP id ga38-20020a1709070c2600b00966238a0c93mr38602562ejc.68.1684365300509; Wed, 17 May 2023 16:15:00 -0700 (PDT) MIME-Version: 1.0 References: <20230516222919.79bba667@rorschach.local.home> <20230517172243.GA152@W11-BEAU-MD.localdomain> <20230517190750.GA366@W11-BEAU-MD.localdomain> <20230517230054.GA195@W11-BEAU-MD.localdomain> In-Reply-To: <20230517230054.GA195@W11-BEAU-MD.localdomain> From: Linus Torvalds Date: Wed, 17 May 2023 16:14:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tracing/user_events: Run BPF program if attached To: Beau Belgrave Cc: Steven Rostedt , Alexei Starovoitov , Masami Hiramatsu , LKML , linux-trace-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf , David Vernet , dthaler@microsoft.com, brauner@kernel.org, hch@infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Wed, May 17, 2023 at 4:01=E2=80=AFPM Beau Belgrave wrote: > > Do you mind giving me your Signed-off-by for these? Assuming you have some test-cases that you've run them through, then yes: Signed-off-by: Linus Torvalds for both. But since I can't really test them myself, I'd really like that. I did these patches just by looking at the source code, and while I think that's an excellent way to do development, I do think that testing is _also_ required. And that second patch was obviously not even build-tested, so really just a "something like this". > I plan to do a series where I take these patches and then also fix up a > few comments and the link namings as you suggested. Sounds good. > First patch is clean, second patch I made the following changes and > after that passed all the self-tests without bug splats with > CONFIG_PROVE_LOCKING/RCU and ATOMIC_SLEEP: Your suggested version with just "list_add()" and a comment about why it doesn't need RCU safety looks good. And the build fix obviously requited ;) Linus