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 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB6EBC072B5 for ; Fri, 24 May 2019 14:00:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9874A20815 for ; Fri, 24 May 2019 14:00:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404030AbfEXOAv (ORCPT ); Fri, 24 May 2019 10:00:51 -0400 Received: from mga12.intel.com ([192.55.52.136]:30871 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403876AbfEXOAu (ORCPT ); Fri, 24 May 2019 10:00:50 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2019 07:00:50 -0700 X-ExtLoop1: 1 Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by fmsmga001.fm.intel.com with ESMTP; 24 May 2019 07:00:47 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hUAkX-0003gA-M2; Fri, 24 May 2019 17:00:45 +0300 Date: Fri, 24 May 2019 17:00:45 +0300 From: Andy Shevchenko To: Daniel Lezcano Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, Andrew Morton , Masahiro Yamada , Petr Mladek , Kees Cook , Matthew Wilcox , Joe Lawrence , Mikulas Patocka , Tetsuo Handa , Sri Krishna chowdary , "Uladzislau Rezki (Sony)" , Changbin Du Subject: Re: [PATCH V2 7/9] genirq/timings: Add selftest for circular array Message-ID: <20190524140045.GY9224@smile.fi.intel.com> References: <20190524111615.4891-1-daniel.lezcano@linaro.org> <20190524111615.4891-8-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524111615.4891-8-daniel.lezcano@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 01:16:13PM +0200, Daniel Lezcano wrote: > Due to the complexity of the code and the difficulty to debug it, > let's add some selftests to the framework in order to spot issues or > regression at boot time when the runtime testing is enabled for this > subsystem. > > This tests the circular buffer at the limits and validates: > - the encoding / decoding of the values > - the macro to browse the irq timings circular buffer > - the function to push data in the circular buffer Can it use kselftest infrastructure? -- With Best Regards, Andy Shevchenko