Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp225839rwd; Wed, 17 May 2023 17:38:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ698SrthwGXfJdNnxSwfTKPVQcrXJIGm9YlyL0DF5yGUjWh6bEZVW6gxu/M3omtzZU7y+Kf X-Received: by 2002:a05:6a00:1696:b0:647:7ee8:6248 with SMTP id k22-20020a056a00169600b006477ee86248mr1983068pfc.14.1684370287146; Wed, 17 May 2023 17:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684370287; cv=none; d=google.com; s=arc-20160816; b=FBENzeCpNJdxpfnnxJszk5o+Aa8bkpmYhMD8+glijGoe5CCUDPeBTJElsr0lL2jkKA 054UbIpoZLI8VfpCpdidrJ4wzu2bGA8xXLKI2oJ9BEzcvmck/IuClV6XWzZYS8I7Tefy psCbTqLH6wHMZg4gLcY3SFpbTIuiPhlvYK6lSLPfkJrNdUqnCeAKV9nQBcOgyDK/7RU9 y95hIPlkVU8zjtyDJkgT4k8F4fFDgGatjlC/6q/vl3WCPNlumGQgFHAK0xav+Yuc68eI ZauBjtB6L4OvDZL5/Ec/v5A3eoWG/n/3bsPvc3lDdmkadNl+UVPbDFx6ASs7tmr6o5SB m5OQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=VVEoDio0arKGJFJsHofzfO3jj1x9hJ9mzHCNy2yQvWY=; b=IxBIB4prfIJd1Ev0oBzVpxOKi4cMXHCT526DjWsRbS6LXWjgtiG+PnxV9mBCzj2lR0 6x1hJcpCEc3kCKyc07vk+4dk6Q8NmADgRH60UtOzxtHTtedMk41PdvlauJvcA7QO23Eq ZOjMXs/SAG8UCmPZimTnrPq1ColSPtZoCn7XlRxm0G428quMFfb5gw5NLGxs1nQWwtho 7qYeBJYRAO2brJjIMJ7db40xXWJq6/SpkGaCWfKAuezOrX+V1Z9FI7BJ5Qd0e+w9Iqod AA6h6qNVvZSITZpcxWGm0v+SmvMWKSzbjFVFofeHeqkDAyqR/JXlYNdwNHLeyDmoeZuf 24UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=jtF2J0ma; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w128-20020a627b86000000b006351cdc5e2fsi292894pfc.292.2023.05.17.17.37.54; Wed, 17 May 2023 17:38:07 -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.microsoft.com header.s=default header.b=jtF2J0ma; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjERAOc (ORCPT + 99 others); Wed, 17 May 2023 20:14:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjERAOb (ORCPT ); Wed, 17 May 2023 20:14:31 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 494D0E40; Wed, 17 May 2023 17:14:30 -0700 (PDT) Received: from W11-BEAU-MD.localdomain (unknown [76.135.27.212]) by linux.microsoft.com (Postfix) with ESMTPSA id 5995920F32BA; Wed, 17 May 2023 17:14:29 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5995920F32BA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1684368869; bh=VVEoDio0arKGJFJsHofzfO3jj1x9hJ9mzHCNy2yQvWY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jtF2J0ma4ETtlJcLPLfrQQfHtw/SSMOAS7sR7k/hbQMqv5qDIHWANdlW2fw+3BXVH s5tve9kbRFKZV6QSlY/WpHVtLI/5Kcl6IwzwsmYBVyu4Ntl8ALEc2sw0H8gA0b0EfX QNFNsjWBO8HWt4WQo7sT49CtShgqJaFFOwDbwLjE= Date: Wed, 17 May 2023 17:14:22 -0700 From: Beau Belgrave To: Steven Rostedt Cc: Linus Torvalds , 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 Subject: Re: [PATCH] tracing/user_events: Run BPF program if attached Message-ID: <20230518001422.GA254@W11-BEAU-MD.localdomain> References: <20230517172243.GA152@W11-BEAU-MD.localdomain> <20230517190750.GA366@W11-BEAU-MD.localdomain> <20230517230054.GA195@W11-BEAU-MD.localdomain> <20230517192528.043adc7a@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230517192528.043adc7a@gandalf.local.home> X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 On Wed, May 17, 2023 at 07:25:28PM -0400, Steven Rostedt wrote: > On Wed, 17 May 2023 16:14:43 -0700 > Linus Torvalds wrote: > > > On Wed, May 17, 2023 at 4:01 PM 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: > > Beau, > > Can you update the tools/testing/selftests/user_events/ to make sure that > it triggers the lockdep splat without these updates (assuming that it does > trigger without these patches). Then add these patches to make sure the > splat goes away. This will confirm that the patches do what is expected of > them. > Yes, I have run these through selftests with CONFIG_DEBUG_ATOMIC_SLEEP=y. I can confirm without the patches it splats with that setting. When these have been applied, the splat is gone. > I usually run the selftests for tracing and for your user events with > lockdep and prove locking enabled. But it may have triggered on something > else disabling it when I ran my tests, in which case I sometimes disable > that and forget to re-enable it. > Do you run with CONFIG_DEBUG_ATOMIC_SLEEP? It will not splat with just CONFIG_PROVE_LOCKING and CONFIG_PROVE_RCU, which bit me here. I'm now running all three now that I know better. > -- Steve Thanks, -Beau