Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3556259pxv; Mon, 28 Jun 2021 07:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAd9jmxqHkiF+4Z6JEVV/4+QTl89YQIRV7xnBXy/ECWO5Jw8QhxEdE3f2RaI/nDJWC71kV X-Received: by 2002:a5d:85c1:: with SMTP id e1mr20833595ios.18.1624889971498; Mon, 28 Jun 2021 07:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624889971; cv=none; d=google.com; s=arc-20160816; b=doHvOqr0MrTIxwr8M4D7fvVnWKD1EloTTeZaGzZHtwbLDHfgy/zvQ6GIWPv2GOtgSH q1bXebXgwDVZqCnJWNoC0ZIjKrn6dUfBN+9efi2oOHnfd0+2EUaY82iZzcW1A0X0VOgA M5V1uSKFURDXzHRAZllYHl/qKOlT+g06wRV3Phdr1/ooF1/SrwyFV/gc3gHOFlquYHA+ yWMUY+wVeB0xISSz47VTAEWwy7CNb52a2zI5CmzgNJ723koQ1tK5s8Xar1Lhvwnj2ydF ZwCBaoHF/wX28guutlfm4m9md7UPG5SC+LTb6pzOenXuTC3dm/6OWhUURucBUWHHmx8O cV5g== 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:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=u+mHKq7qTTJCoVp4riFxvnW5aDGyigNAF0z1SpQNLpI=; b=aHST0aolHHn9F46c3zv80hcRM7gMk/GHsfoAcHd5BPflNHhm5uvvFZqqi3RBCDgZpV k1As2JpbbI5CVr9MOsRlVHsAmYCts4WiOn3vWIv7EJOW/ekzMF9v0bjJ2FxCRcZf+c27 I7ymtAwTC6bdnej5xvYCkh0CjYiS2GsZp/6mYFAyRV8n0S4egwhAdh5gLZcqbDFOzRU4 e+Gn/NiUdI4tjB5SlbxenvkrbwpmTaGF4Ijo0khLJ8eiVngg9Q68wyr0Y1ksO1Bx9iie h16dtMXNy0vNxWG1E+gvR42/NSx9R7tSPwkESEHrFHSr2xpwbukM1DKCc/AuxoEOwmPs 2ATQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GYeAUuIv; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=86swravY; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=EkpMQCIu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si16983708jal.20.2021.06.28.07.19.18; Mon, 28 Jun 2021 07:19:31 -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=@suse.de header.s=susede2_rsa header.b=GYeAUuIv; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=86swravY; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=EkpMQCIu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232460AbhF1OPl (ORCPT + 99 others); Mon, 28 Jun 2021 10:15:41 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:47302 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbhF1OPk (ORCPT ); Mon, 28 Jun 2021 10:15:40 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 036A422498; Mon, 28 Jun 2021 14:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624889594; h=from:from:reply-to: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=u+mHKq7qTTJCoVp4riFxvnW5aDGyigNAF0z1SpQNLpI=; b=GYeAUuIvOglBswcJ6jcRaESdDDwXafBYYFFe+ILYBN+Ly/PlYlolrovHsmzTmjbVr6wdRa DhmPzXqBVBcfFCyySSwT9QbpCFLMBFORj9OtZwmTrMka/KDp6UwrwZ9NTdjIKwFWNze2fM VB8y1EJd9NSWFNvWzH0HlVAHQrNCIAE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624889594; h=from:from:reply-to: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=u+mHKq7qTTJCoVp4riFxvnW5aDGyigNAF0z1SpQNLpI=; b=86swravYrb0sUf0IfviqrwIuMHLhO/tnGiC8S/yaGR8fxMtSKKleUL5bWC9oVJkTs6UbiR OTUo3tla1Cwjn0Cw== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id E801811906; Mon, 28 Jun 2021 14:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624889593; h=from:from:reply-to: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=u+mHKq7qTTJCoVp4riFxvnW5aDGyigNAF0z1SpQNLpI=; b=EkpMQCIuybFAPsF4B72o0VGO/jl85VFH4iNASylyYgw13ytPhj8Lw9DRVNVAwM77XKqD+9 J+odxaKWcr60oUWfDM/q/6jRO89sWYsfBLHnJpCth+dhxCP3Fm5vUhExESmkqC9yj0UqQU Z07T9P6WE3JTO5QWz93Ptv3SIip8Blc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624889593; h=from:from:reply-to: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=u+mHKq7qTTJCoVp4riFxvnW5aDGyigNAF0z1SpQNLpI=; b=7KdjcoOY1/zsSeaVjSyHo5trgte3+Kv6IjgpfqRI6j8UJ7zRVlDM/GJq9WbrjXPiR5QYjk KjVPaa3XL7eXvsAg== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id SemMOPnY2WAkBAAALh3uQQ (envelope-from ); Mon, 28 Jun 2021 14:13:13 +0000 Date: Mon, 28 Jun 2021 16:13:13 +0200 From: Daniel Wagner To: John Kacur Cc: Daniel Wagner , Mike Galbraith , RT , lkml , Clark Williams , Johnathan Schwender , Peter Xu Subject: Re: [ANNOUNCE] rt-tests-2.0 Message-ID: <20210628141313.3fixpscbdc4ugnld@beryllium.lan> References: <20210625160801.9283-1-jkacur@redhat.com> <549a4a5579068b9b1ca7741cb0f4aafbd04f4389.camel@gmx.de> <1c1966dd51ae6f8ddcd892cba485c332281fbd37.camel@gmx.de> <3d6a6c593eed6f5d59209ba2d8db29fadcc72ad7.camel@gmx.de> <20210628081135.l7yvya7iaygb23ye@beryllium.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 28, 2021 at 09:50:25AM -0400, John Kacur wrote: > > I'd say the tsbuf access is the one which triggers a pagefault. > > > > John, I would suggest to move the rt_test_start() into rt_init() and > > take the timestamp at the execution start (as my initial version was). I > > think the additional pain in slightly more correct start timestamp > > (which is also not defined what it actually means in this context) is > > just not worth the effort. > > > > Thanks, > > Daniel > > > > Send me a patch, and I'll have a look. The timerthread()function is > sensitive anyway, so it's probably a good idea not to put that kind > of thing there. > > Note that the the code following the /* Get Current Time */ > is getting the time, but you probably want something rougher that > you can call strftime on? I think it's just the buffer strftime is writting into it. The page is probably not mapped and hence the pagefault in the first access. Anyway, I'll send a patch which moves the rt_test_start() into rt_init().