Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3367762rwb; Fri, 9 Dec 2022 13:34:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4B0gFCG3wFmOW2t25fxomSjEgMECSADnuH4qjqWKNNkDVRMgY5hh+nZqM0ReiRjOucu5H8 X-Received: by 2002:a17:907:cb83:b0:78d:f455:30fa with SMTP id un3-20020a170907cb8300b0078df45530famr7890371ejc.34.1670621674188; Fri, 09 Dec 2022 13:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670621674; cv=none; d=google.com; s=arc-20160816; b=fY4fN0nuIIJgKIYsRvjfRXrPCvijEbrGGJ/3aZp6p3qtX5y3vZhPIVexQWN5/IalFt K2pyph4ehla9PdLpP7LMuIWPKWCLpw3bkrCRZ2P7hJBuxRs+3cugrGcUtozsfTR7PYNj igDBSIRa+smxRZLVS8SVyfHeOTa0hVJbyiYjySyRo9vdzF+dBForkzVoT3HBzVVQawvY bH2eCrWCH10sHDjwrycarR7UgVlWcy/udxTm2VNNUOmFFuY0BP2NOHBMauEfE5QmDzE8 7dLInA9J6deeHzUX9CXEd+UTaWU8hOTAfUQGu5+xqPm/lWhB5nGX+HO+dYhhMqFOD5Km CcUA== 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=dcm+4OntTFgFYJRxDhfOXOHNDhZnxEcTHOSxCrMDzSE=; b=Wf60xEaFcUXYYFhEDcmcuGT2GNcdwWMHLLukGFOnEhOABbUM/aE/D5zVhzQlHlROwK 4JYhdVKl0rUo0VvBhkH9MgldHC07stb40XxEUf5VZlVVAvIUhvKmSOKm3qH3DDdx7dJC OpYCQXM0NM5TmQ7j/juHX/H+9WEqgHvycPPxr3QBF71AnsV7xWf0aGBd+Q5mT4+JWC1E QQLslGeFOTJt9qHFc1dR9RE+f/sFUMxXyErBHtez7+Dezz9v3LlhlpuIbgBeDjyeUV3+ mGi/ZqfBYDQ86HiGgLn3/3+YF+3B9dIa59hzZGR1BNqP0MIS6gZdd6gXw/QB9S2QWFtu 4n1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/rQRIQ0"; 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 dn7-20020a17090794c700b0078def76da94si767291ejc.437.2022.12.09.13.34.15; Fri, 09 Dec 2022 13:34:34 -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="R/rQRIQ0"; 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 S229818AbiLIVRG (ORCPT + 74 others); Fri, 9 Dec 2022 16:17:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiLIVRE (ORCPT ); Fri, 9 Dec 2022 16:17:04 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E85123E8B; Fri, 9 Dec 2022 13:17:03 -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 081526226D; Fri, 9 Dec 2022 21:17:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0215BC433D2; Fri, 9 Dec 2022 21:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670620622; bh=saO7znyvoBW4vtLBcM2xx1LrnH9b1g7Bnb6NG2yxEkU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=R/rQRIQ0b2HSNshynl4q1bxAS0Wd5AVXIraXKGgbKvr5cmbFU2Vo6Om8X5FK9ZFLx vKuqRT7SSUHliVQHK894q2RvO9PC4fbOrh1fEYwLl9b+Rjm9aLoz9OdDPO9TsqY5RB KG1ypJQs8G4ogEOWQSTNVFafV0aX2msH65tltDtAMvWJY8gnq/XAq09CdxtQi5GJ7E JLZ1IxgH0Iq3keRwWU+e1167NsTnKMW9YKOe0PwBpGTIyGIrdGb9y7rhA+c0BDfcv1 qqPyCuqEtfhLM3XGNVMy/nc5b2JeSywEmgg3Aj8bthJHGUO9bcErRB4Z8Iymv7KLZH 4cpeSM0b+wNJg== Message-ID: Date: Fri, 9 Dec 2022 22:16:55 +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 V4 2/3] tracing/osnoise: Add preempt and/or irq disabled options To: Steven Rostedt Cc: Masami Hiramatsu , Jonathan Corbet , Juri Lelli , Clark Williams , Bagas Sanjaya , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221209153552.4c7099cd@gandalf.local.home> Content-Language: en-US From: Daniel Bristot de Oliveira In-Reply-To: <20221209153552.4c7099cd@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 12/9/22 21:35, Steven Rostedt wrote: >> + if (preempt_disable) >> + preempt_disable(); >> + > The only reason the above works is because preempt_disable() is a macro. > If it was a function, then it would likely fail to build (as you are > overriding the name with a bool variable). oops. Sending a new version changing the variable name. -- Daniel