Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1542137pxb; Thu, 14 Apr 2022 08:20:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4hlhaLRdEvYf6HtJFzicgYuuckb8neO0evU2QopddjlwExLkpedBpMntT+hXke3PwwHA7 X-Received: by 2002:a17:902:8698:b0:158:99d4:6256 with SMTP id g24-20020a170902869800b0015899d46256mr10413675plo.104.1649949611073; Thu, 14 Apr 2022 08:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649949611; cv=none; d=google.com; s=arc-20160816; b=WdBecKieRTKCbo0gpRUIT7DWTzqHnJjj84fwHWcxMwIZCLRdGBT09PnXLkMFsUG06r JlvBss3IDQwA1Xz2j14K1eI2bMHFiI/M0OCx4KQ0IWHcyZX5H2julUtmgXW4gF3MqQn3 TUJvqatLySfyXmean+ndhSQE6aAmIkLtoPb601tD0lk4ric7b/NDyzySxcVIL4xocV3u cKaqNFfNJcy3zONMDLE9rewGpkuha2F4BZaP5lLMIGIU2ch8ER9yar2oSlyjlJl0KnFp mDd80iPqnSq6x+7pnMRDrjvLLxtQbfZWYA6hmceZHBlPFY4zbCHKRf7kFv8PxoAaa/ZS qOZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=YlxWxeEGkgLnVt3u2pgdSqjRibYcLflLeZsegRG9WOc=; b=Mq8/4P5GGAuPhGkzN4nkA5tGbDEZ7oUy9bgJPwLV63GgABagK2cagbKt1vIZ0SOu6i +jvRhSt75kmLbLsczKZ+zhIu3c63IJgeEaAIA1gaFmKp1/IjR/Yim+o5umpL23sR/Xjz dlqcv5511iCV30ETUjrssHuSGCRuQT7V/G2f0n+wP+acObl5Y/VFCz4zf3gaIQ32SL90 pJo66590r0ISyDQ7/dJsSc83Hb9xfg2w8zzKM3nLcvRd6H8PQ0u6Rr0vtXT3LkfGf3RD XV7mQBxi2RfaUeCs48YgiBJwdbY8/taSo9N7UDvZTUg5BU0w2SmcJ+Sv0rIDpDDLzyTL DhCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=woA4MM1n; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob7-20020a17090b390700b001c9986bb739si2227625pjb.32.2022.04.14.08.19.54; Thu, 14 Apr 2022 08:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=woA4MM1n; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241612AbiDNJUn (ORCPT + 99 others); Thu, 14 Apr 2022 05:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241162AbiDNJUi (ORCPT ); Thu, 14 Apr 2022 05:20:38 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 786EB51312; Thu, 14 Apr 2022 02:18:14 -0700 (PDT) From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649927893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YlxWxeEGkgLnVt3u2pgdSqjRibYcLflLeZsegRG9WOc=; b=woA4MM1nalDUbF5qByr5OrBaLP7a5QmD3vxg+EGDy9AV7h0kQexg01M+J801NGmDK5Yg36 MegPwzTgDfDGGTOSwH4FYz/HTngLe1bYBBO697YTTfEiy4tTLaikGgtBSrWDfepkhDZ5qQ dMOdbfNCzg7um5DRLP977CmoerlO0gR7QZ/YuG0c9izsqwa/5ssRuARbilkvgCgYRm08Hw b1AftCe7fPuNs0c88r+9q9+reHruSAIWA7V1eg6X4szqXL1BSe7QeoDUMqkSASEzYBSMKQ FoelKpto4IcKmr0h0oZwHBFh3NSTy2C5361MWnJVgcXiCXJwINjIGR+SomoHxw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649927893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YlxWxeEGkgLnVt3u2pgdSqjRibYcLflLeZsegRG9WOc=; b=TrVTrdBxZf6P1A7fu27oe3ucmEXu0kBss2Q6deigtyXa+CA3Kjl7ePQI1NoxVkBLowQnN/ 2nyJAW2UpLWqdHDw== To: John Stultz , Thomas Gleixner , Stephen Boyd , Steven Rostedt , Ingo Molnar , Jonathan Corbet Cc: Richard Cochran , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Kurt Kanzenbach Subject: [PATCH v2 2/3] tracing: Introduce trace clock tai Date: Thu, 14 Apr 2022 11:18:04 +0200 Message-Id: <20220414091805.89667-3-kurt@linutronix.de> In-Reply-To: <20220414091805.89667-1-kurt@linutronix.de> References: <20220414091805.89667-1-kurt@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A fast/NMI safe accessor for CLOCK_TAI has been introduced. Use it for adding the additional trace clock "tai". Signed-off-by: Kurt Kanzenbach --- kernel/trace/trace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index f4de111fa18f..7be87b29c6c1 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1542,6 +1542,7 @@ static struct { { ktime_get_mono_fast_ns, "mono", 1 }, { ktime_get_raw_fast_ns, "mono_raw", 1 }, { ktime_get_boot_fast_ns, "boot", 1 }, + { ktime_get_tai_fast_ns, "tai", 1 }, ARCH_TRACE_CLOCKS }; -- 2.30.2