Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2108527pxb; Fri, 17 Sep 2021 02:20:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMh2SHIh0JiGUeqsGXREpjF3ryrIhMP6vTA3r1WM9atJohsVlQ26hI/XzXci6OsuIgcQGl X-Received: by 2002:aa7:cd41:: with SMTP id v1mr11383257edw.393.1631870400555; Fri, 17 Sep 2021 02:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631870400; cv=none; d=google.com; s=arc-20160816; b=KvjNMK5AbCYf/ZyqWbN2NLdYO2643g54J/oGdmR5KYM47l0Hlqvbc4dwXwUecWA6lZ c7esmJqS6o397McqrNsrUaBmBOfu6EoKNxVriTOR6gqySlRXodkuSur6IQamonQ+7hvP jzQFlmTCEe+N4cppemCYG79YQjkyN8xNDFdsYIF1922h8E/XE5wVRkheRcc9fweCPsLs pq0/ydPel+s/zYF01YO6HOm0F2+YF6mFV/7AVO7haxQL9HsIhJo1WhixSSokeezXicla gHJRiPwqivswt3kaQAPd5M4ngj6qans64tGnah2EcoyGeqeGzZef56v6zUqikXuo0aB/ wvtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cqdMg3sYEVDu/L73yV5RUtE7bsLAqIyfCVaqqnuicqU=; b=rwYtDW9/baiEYgXPglU/DhH9Fb7eadV/ITGYFYm8Lp0LBDw/hzQyq6Fc90LuuJaj4B syDTZRAElk6OFHl6swOoVsHocZuclwi+9ZlPHQkDtNlFsngSoOiIhytolbSDEUSHUKQE uLVg9MCy3jUij7BgzZY5XLuXr2GqFmPHmh6v2Gt98pIsBbHv6zkpPkkiwUWVzOyquWWj ooqCSNhx8VENBUbRvM7DMH5NE4ph9vWPTazK+mwEDCm03x4VQf4c8MYy6tfpjmbw17Sz p/jWLmAKZCHzGghbjXH4xfiuyl6Hj15mykjWn8jpDwgG3IES59EDx3prtAOrdaaHuVh7 WJgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r7ZzsngY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si8318042edx.85.2021.09.17.02.19.36; Fri, 17 Sep 2021 02:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r7ZzsngY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240126AbhIPV7a (ORCPT + 99 others); Thu, 16 Sep 2021 17:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234142AbhIPV73 (ORCPT ); Thu, 16 Sep 2021 17:59:29 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D746C061756 for ; Thu, 16 Sep 2021 14:58:08 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id i7so24142319lfr.13 for ; Thu, 16 Sep 2021 14:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cqdMg3sYEVDu/L73yV5RUtE7bsLAqIyfCVaqqnuicqU=; b=r7ZzsngYT50eiYn3C0NVDAmH53vzgUe7T+5Pa172kLSk6H8xrLOD0KxZqHVVQdznmv MVTkGfS1VXPMi5hmACiMgQvFG3yHGenMpXZHchcw0wQnJEtZmR7jKNUPP4zSwH3Qnygb YabyJiYhWLd+i2VCjOt2rHQFsL1RctZ3ZTM2zFzeJfH0MbnGDkxEXAhVlLNrTL0MrxlE UPoS2N5HynoWyetlnKGUQBwPsL4TDxOxEmkLOXoD1QU3bdTnAkS+2S3ANPJwjh0zgdNA Ac1LcNe187YnuNTSWPh7oFKS5kfaRiwij4MIyuyqlm9xewEsigjtHtdpY3yhqdqtJV/a QuOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cqdMg3sYEVDu/L73yV5RUtE7bsLAqIyfCVaqqnuicqU=; b=IDgVOvOadztg0zu1avD+NuKyztLBMhqwf0dGczmEcZc5+1nqb/wICdgUxRin9fqyLz 2ocknoi8/X2lZm1XnwoxFVamU+p8gXec7bkMu73cw3UpbINJgJMGlM8tr6KZDT6DaltQ TyxdkwlmKj9g/MOdbfPddP46roOuwycw3UWtXlDlxgHUl9+gK5o11Er+tYL6WWoMuY5u KCj0OtzPXZNWWDiXCGPXVQPp/bCZQ1ojS+N3+vFKhrxbecNoVnp90D2fZ9gf9elyr8+x MwGZp2MURhldAifHX68KC3BYUcD0RG8SAEQoTtcwlt6LV289AjlffOniZa9omsPWdz6v BENQ== X-Gm-Message-State: AOAM533IxzWQ8I7z3hbBRnliFjPkfivxnJu5/+gxnvuzp9xORETUpigc z5OX5V8MTpRP3nou34wujMWuJOzwEdPqCr5cflCHq3FALzE= X-Received: by 2002:a05:6512:e89:: with SMTP id bi9mr5504267lfb.95.1631829487007; Thu, 16 Sep 2021 14:58:07 -0700 (PDT) MIME-Version: 1.0 References: <20210824164801.28896-1-lakshmi.sowjanya.d@intel.com> <20210824164801.28896-14-lakshmi.sowjanya.d@intel.com> In-Reply-To: <20210824164801.28896-14-lakshmi.sowjanya.d@intel.com> From: Linus Walleij Date: Thu, 16 Sep 2021 23:57:56 +0200 Message-ID: Subject: Re: [RFC PATCH v1 13/20] tools: gpio: Add event count capability to event monitor application To: "D, Lakshmi Sowjanya" Cc: "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , linux-kernel , Mark Gross , Andy Shevchenko , "Saha, Tamal" , bala.senthil@intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 6:48 PM wrote: > From: Lakshmi Sowjanya D > > Add -t command line flag requesting event count to the gpio-event-mon > application. If event count is unsupported an invalid argument error is > returned by GPIOlib and the application exits with an error. The event > count is printed with the event type and timestamp. > > Co-developed-by: Christopher Hall > Signed-off-by: Christopher Hall > Signed-off-by: Tamal Saha > Signed-off-by: Lakshmi Sowjanya D > Reviewed-by: Mark Gross This looks wrong. If this hardware can report timestamped events, which I believe it does, each event should be reported to userspace uniquely, ideally using the native timestamp, and using the in-progress HTE subsystem. Yours, Linus Walleij