Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp473029rwb; Tue, 29 Nov 2022 00:49:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5sENhum20sY0GXXFymhlTUxSiGBluD9BQXV++V9hY9vKtu0C3C1ZvRnbZf2zlS/ZrFo6QG X-Received: by 2002:aa7:d417:0:b0:46b:203:f389 with SMTP id z23-20020aa7d417000000b0046b0203f389mr11593058edq.303.1669711744121; Tue, 29 Nov 2022 00:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669711744; cv=none; d=google.com; s=arc-20160816; b=Ua2mdzrqtGWpnELtb2xsT9iZ3fGr9fqqekAht2wyrZwg026fi6D14K0HcgYSF1G5iU 83jhMP2+2scWjjdUKC0AhX/g5O3/5uRxN+a0peGIaJvQNmcj9N6WemglAChcuHSNWpzU fiQZ4X/mf3vwwaIVUXcv92BPl/dUyyzz1RaYAQ/m3kygbj/zduX8qRArzGmHmr9kqvx4 Iu5CVsuCLZ3XJvbxioCVRLQpoyG0cPIUJGtWaTUoIuxZlWjoOWpkJJrF/wvJYqL2JkOr 9J68JG4f6dVez+S4Ma4ujk+sJjulYFeeYbLxJIGMZ+R3AaRXZ3ji62d3ZEtQBh4pXGfB IslQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=N0g3VXoYcN5PuOqxo4WoWDZWouoOM2NK9Vqfy38z/Yg=; b=aF2coukVsZhRAeN1H3ep95rcfMsEQNyavM3noJGEfkd5MUqGFtrRJisuSNNgcDEGq4 pdUg/oRt4pFtZmR+AwhVL5cN9UGr+8O1ODE5qBnsHOolKyNSuhOphiOM++JAz4bas4Pp yCtQbHQ1QOTRTJVP1NIK3UwHEubZ9dPQ37FZeAmArDkUHaNhEI386hz0anuxtNuOcXWN SPVajJTgYPifavflQ71OpR4bX7g6s/MtegxwO+qycRfhSfZU+bATR959QxTwN39CUkKk 1qNS56RjAbQ2Lr51H9Pithbpu/JyDdfWJGNFB5/K0QssYVjxcC4Ay5zFTYkdkb34t94V V27Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J6Sp8yD9; 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 hb17-20020a170907161100b00781e6ba94ffsi11574377ejc.126.2022.11.29.00.48.44; Tue, 29 Nov 2022 00:49:04 -0800 (PST) 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=J6Sp8yD9; 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 S230356AbiK2I1v (ORCPT + 83 others); Tue, 29 Nov 2022 03:27:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbiK2I1g (ORCPT ); Tue, 29 Nov 2022 03:27:36 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 252C2C7E; Tue, 29 Nov 2022 00:27:35 -0800 (PST) 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 B391B615C4; Tue, 29 Nov 2022 08:27:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97BC7C433C1; Tue, 29 Nov 2022 08:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669710454; bh=y/5hESTvCXXt3FFC5hUnZVtYCrTzsXmagMcpdIr/W48=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=J6Sp8yD9Gv/groWHhkCO0GMEtgsXdNCDrbhcfjS5SIyww+HTSJePeqpPNH/Sfv12t NVBrvR/ThejYzL3uvVn9L/BMoDvvBiBx41LjT3L78RoVxdAs1sDRVeh0MYL2sk3ZJD ONC+pZDT3LjpqI8IvPWIV0ktbmyCZy9LkEL/9l+RaQ8WlB6ga/lKG8YpAJKGFrXRI1 Yte+pY20Jys6Ag/GM5DuYoNTRZOv8/ToSzBFCT0H6pOi3smXjDT3AWxbTQNY7j3Fcw dec+pfE3kaTaswz6oCrW0u9PkmzFlrvw5a+5BuClZOx+HtauvUeMTICel2DPIhTFel I7UGTLqsMjZAw== Message-ID: Date: Tue, 29 Nov 2022 09:27:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH V3 2/3] tracing/osnoise: Add preempt/irq disable options To: Steven Rostedt Cc: Masami Hiramatsu , Jonathan Corbet , Juri Lelli , Clark Williams , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bagas Sanjaya References: <03d4a8522792fa3a51920c79f8a5074933a2fcb3.1669409262.git.bristot@kernel.org> <20221128153919.33c008d1@gandalf.local.home> Content-Language: en-US From: Daniel Bristot de Oliveira In-Reply-To: <20221128153919.33c008d1@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 11/28/22 21:39, Steven Rostedt wrote: > On Fri, 25 Nov 2022 22:20:23 +0100 > Daniel Bristot de Oliveira wrote: > >> @@ -1308,6 +1315,8 @@ static void notify_new_max_latency(u64 latency) >> */ >> static int run_osnoise(void) >> { >> + bool preempt_disable = test_bit(OSN_PREEMPT_DISABLE, &osnoise_options); >> + bool irq_disable = test_bit(OSN_IRQ_DISABLE, &osnoise_options); > bool irq_disable = test_bit(OSN_IRQ_DISABLE, &osnoise_options); > bool preempt_disable = IS_ENABLED(CONFIG_PREEMPT) && > !irq_disable && test_bit(OSN_PREEMPT_DISABLE, &osnoise_options); > Ooops, you are right. I will fix this, and the doc as well, in the v4. Thanks -- Daniel