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 E8DD1C433EF for ; Fri, 18 Mar 2022 13:58:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236933AbiCRN7k (ORCPT ); Fri, 18 Mar 2022 09:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbiCRN7j (ORCPT ); Fri, 18 Mar 2022 09:59:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1801D9EAB; Fri, 18 Mar 2022 06:58:20 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 308B3619FC; Fri, 18 Mar 2022 13:58:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB53FC340EC; Fri, 18 Mar 2022 13:58:18 +0000 (UTC) Date: Fri, 18 Mar 2022 09:58:17 -0400 From: Steven Rostedt To: Wolfram Sang Cc: Jae Hyun Yoo , Ingo Molnar , Jamie Iles , Graeme Gregory , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH v2] i2c: add tracepoints for I2C slave events Message-ID: <20220318095817.4ad3a65a@gandalf.local.home> In-Reply-To: References: <20220308163333.3985974-1-quic_jaehyoo@quicinc.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org On Fri, 18 Mar 2022 11:53:48 +0100 Wolfram Sang wrote: > > trace printings can be selected by adding a filter like: > > > > echo adapter_nr==1 >/sys/kernel/tracing/events/i2c_slave/filter > > > > Signed-off-by: Jae Hyun Yoo > > Steven, are you happy with the tracepoint parts of this patch? Strange. I do not have v2 in my inbox anywhere. I checked the spam folders and found nothing. I had a glitch in my mail server around this time and maybe it was dropped then. Let me take a look at it in my LMKL folder, which it appears to be there :-/ -- Steve > > > > + if (trace_i2c_slave_enabled() && !ret) > > + trace_i2c_slave(client, event, val); > > Why '!ret'? I think we should always print 'ret' in the trace as well. > Backends are allowed to send errnos on WRITE_RECEIVED to NACK the > reception of a byte. This is useful information, too, or? > > Rest looks good to me. > > Thanks, > > Wolfram >