From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90501C3F6B0 for ; Sat, 30 Jul 2022 22:05:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233373AbiG3WFo (ORCPT ); Sat, 30 Jul 2022 18:05:44 -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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@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,