Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1102657imn; Sat, 30 Jul 2022 15:39:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSpUnus241FXGmrXn3aWSEonE7r+u/IH0RWkS3wjtO107WqJRWvbLKecF65pY+hixoOFdB X-Received: by 2002:a17:907:6da4:b0:72b:7f56:63c with SMTP id sb36-20020a1709076da400b0072b7f56063cmr7293852ejc.6.1659220741910; Sat, 30 Jul 2022 15:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659220741; cv=none; d=google.com; s=arc-20160816; b=PeNIed3kxCp8mKLdO5mKBzkKIA6lWw0fFaI0zON3k27vMT6ZxqizHjA5SNo0JERN1l gOu+NywprjIHx1rDgBwW/gKmmhnVhTv3nexAGvu7Epkt9RBQ9DcuqnCLu1Zfwcu4vPej to4zimNDOHLU7jlizuRFzeD2eoJfZujM9BOxI38TRsLZTuiiGW2y9kv6BmAM130ZEwmW mjmMthSYXlWh8XnA/HQS5TnwwXD5uPRqyp/oOFwBOmLk0Ic6/IT7oEECHpDFRgWBEDyv dfppPWGorqIh2mUlmTg84E/9DJceIdUendOxAu6QU+s2yOp7f7qQGXzq8eXJpFDYLRog wMXQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=O6t8U9DPpS42ZsZYWrBzNl2G1omnGmJa9yVgTrzYG2s=; b=Jhfm5g2QuCLRh3l55BnLAUQBtYt8Ge9d+dlZjjljPnmiF6QuYhJSbQg5Hzw4sMeb9z OWz9ne50rvXLsRsMyU1ZpPmaS7qrQ784pHfWmORTb0ANkfZoGJz7ELiHJEm2C/rDOtw2 obTiTTmUvCH3RlA45uzWUvEuscae9Vc4Trz0jE7fY9AjuPCAg0pp9tJm6YhlFD7cgIIq mXPvxSF0BMhC6Z5tAJk9MI0regjjmoc9vpy4lce78Ly78Hqo3BDVrp4PVTW33T0QDDgW NAAwGlbnlv0Oknlfkx8NwW5UZEWUF8bbHIvbvMtvsMi0Q6u1DXuALdr55Nsfux9QqEyn n67g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=IE1YYEdm; 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.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa34-20020a17090786a200b007262cd54996si1001868ejc.457.2022.07.30.15.38.37; Sat, 30 Jul 2022 15:39:01 -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.dev header.s=key1 header.b=IE1YYEdm; 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.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235459AbiG3WFp (ORCPT + 99 others); Sat, 30 Jul 2022 18:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiG3WFk (ORCPT ); Sat, 30 Jul 2022 18:05:40 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94D36645D; Sat, 30 Jul 2022 15:05:38 -0700 (PDT) Date: Sun, 31 Jul 2022 06:05:23 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1659218736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O6t8U9DPpS42ZsZYWrBzNl2G1omnGmJa9yVgTrzYG2s=; b=IE1YYEdm60OSB67r/4j9d5Xmprt5S27Wr0IOdncXMCbeeTA3nPOmc7AdmudBzKiBexuZtS aMTaV48EUy8yITnlMAI5ZSkZh9MUkkRl3pWwxMI4ritrsN0OxxEyhHbExb8pvj0RZ4PRvQ /67pTtE6XbGoavK6gURFmzNgXYhz5Q4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Tao Zhou To: Steven Rostedt Cc: Daniel Bristot de Oliveira , Wim Van Sebroeck , Guenter Roeck , Jonathan Corbet , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Will Deacon , Catalin Marinas , Marco Elver , Dmitry Vyukov , "Paul E. McKenney" , Shuah Khan , Gabriele Paoloni , Juri Lelli , Clark Williams , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org, Tao Zhou Subject: Re: [PATCH V9 01/16] rv: Add Runtime Verification (RV) interface Message-ID: References: <20220730130145.46f0d57c@rorschach.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220730130145.46f0d57c@rorschach.local.home> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 Sat, Jul 30, 2022 at 01:01:45PM -0400, Steven Rostedt wrote: > #define rv_attach_trace_probe(monitor, tp, rv_handler) \ > ({ \ > check_trace_callback_type_##tp(rv_handler); \ > WARN_ONCE(register_trace_##tp(rv_handler, NULL), \ > "fail attaching " #monitor " " #tp "handler"); \ > }) > > Where the macro returns the result of the WARN_ONCE() which is zero on > success (no warning) and non-zero otherwise. The modification of macro make sense to me even though I do not know trace enough. Thanks,