Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3475830rwl; Mon, 27 Mar 2023 14:53:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aazqj2/43DjKIw2vSJIgC1JCjdUtYt4zR04WEa+KhHo1XMdXbunOq3ay7FzkEXka4o7CTz X-Received: by 2002:a17:906:4b08:b0:8b1:7de3:cfaa with SMTP id y8-20020a1709064b0800b008b17de3cfaamr14257985eju.3.1679954010463; Mon, 27 Mar 2023 14:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679954010; cv=none; d=google.com; s=arc-20160816; b=jSUFivVHYK0zVWM4oyqp4Gm2zGbrByHlOWsO02n5hY+jNHXuhgYC4Zpb3vCZtqdFvu XVLuCqm9BAyc1TE13oegTLCozFMIQ43wlYbbMj3l5ExNJWjfZn9wZfBfiG8lrF6zwt/3 A7oicBLiGQGD8EG4BGlewFkkXMEITnGcRGgBoQlWN/xp9/q3gPf5biJ02N729Knz4Nb0 Ik7npHvVw8rABSpIp5koONyN5ujoobw+ammJRKMcIfqKZP3R07gvLHyvNHpVWUIbr4hd 7Xq0+i22igSHfeSR1dZzrnfBwEuRfpe+uafJZVIfiMQ5rIOGIZJVmjHEAJo5DMars6t3 x3tg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=bHmd3lKlDpNnxAnoAN66Cqb1GCgyFDDg5dLfJAYJlcg=; b=RmssFjrPeCzW2kggJPn6VCnuDT51CA1nr2nJ9kAiV6/BJLB/hcFu4YwjoaOK9CVZvz yIsxeeUCxXM8n2m4uwlchbP/jGmhV9H/JzwWQZdRo3pNYwT48ZKgkk6JTunft/2RrIUx btR6W2bPSkbwyiils5X+CwGjCH9s5QNXNuE5shoO8PPJUEerodHTMIsJi1J9AczJ4tZ3 OP2gpC5nwVqywJdo5+YRYHgYas3j6VAh718qvXQQNFmNm0q+PC5YlXihP4m4tJZTqkhR WAhzyMGPEsPVY99Wu4usE+IJVoYjn0TWLMxEd7XZ0Mv2iA+NZZW3v4aMbX16RKz2MsYT K/2g== ARC-Authentication-Results: i=1; mx.google.com; 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 i3-20020a170906850300b009210f7e4860si23786906ejx.348.2023.03.27.14.53.05; Mon, 27 Mar 2023 14:53:30 -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; 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 S229762AbjC0VvG (ORCPT + 99 others); Mon, 27 Mar 2023 17:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjC0VvF (ORCPT ); Mon, 27 Mar 2023 17:51:05 -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 BAFDCD9; Mon, 27 Mar 2023 14:51:04 -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 82E7CB81978; Mon, 27 Mar 2023 21:51:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AAB4C4339B; Mon, 27 Mar 2023 21:51:01 +0000 (UTC) Date: Mon, 27 Mar 2023 17:50:59 -0400 From: Steven Rostedt To: Uladzislau Rezki Cc: "Zhuo, Qiuxu" , "Paul E . McKenney" , RCU , "quic_neeraju@quicinc.com" , Boqun Feng , Joel Fernandes , LKML , Oleksiy Avramchenko , Frederic Weisbecker Subject: Re: [PATCH 1/1] Reduce synchronize_rcu() waiting time Message-ID: <20230327175059.1e8584cc@gandalf.local.home> In-Reply-To: <20230327174844.15305988@gandalf.local.home> References: <20230321102748.127923-1-urezki@gmail.com> <20230327174844.15305988@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 X-Spam-Status: No, score=-2.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Mon, 27 Mar 2023 17:48:44 -0400 Steven Rostedt wrote: > struct my_info { > /* store state info here */ > }; > > int main(...) { > struct tracecmd_input *handle; > struct my_info info; > char *file = argv[1]; > > handle = tracecmd_open(file); > > tracecmd_follow_event(handle, "rcu", "rcu_batch_start", > batch_start, &info); > > tracecmd_follow_event(handle, "rcu", "rcu_batch_end", > batch_end, &info); > > tracecmd_follow_event(handle, "rcu", "rcu_invoke_callback", > invoke_callback, &info); > > tracecmd_iterate_events(handle, NULL, 0, NULL, NULL); > > tracecmd_close(handle); > } BTW, none of this code was actually tested, so I may have some syntax errors. I just did this straight from memory, as it's so easy ;-) -- Steve