Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp158499pxr; Sun, 10 Apr 2022 10:17:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcPyIAzgwXE+7nkPfUMCj/RcajZqP3gKee1UasY9kYwtZqnbe3fbwiwhC59VX4rUzQZLHV X-Received: by 2002:a05:6402:1104:b0:41d:5f4a:7f5a with SMTP id u4-20020a056402110400b0041d5f4a7f5amr10476071edv.207.1649611021641; Sun, 10 Apr 2022 10:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649611021; cv=none; d=google.com; s=arc-20160816; b=BX9W7dh56hsQM7Ou3HZ6Dn6PZpYb9dVUAZ1TtQGoAXoNkWLJz4wvNe7eDWzvaYOCMT dZi+cMvXtU+G3VXJSE9KzdSkWSIh7qs/C/Atkr8SqpX9zXa/S/HDac4G7jYXV2+6omin sYVYzFwv387Acn2yP0FXRImet2sj1HiPh0vQD5cuU6IRLlnQeK5kpgHBkQKgzMufdxWH oCI9PZ+sgtURUdKqfoSc2e4OfxG3JxtDIdHr+2GVK0oqPAKJBVSYZ+EwN+n9UtAgGGcB pciwcVm6NLpaUo6tOOZsn5FABFrlGhtjYJYJjsklNV3HZN2TMbLUat4QfuOdGNR7rbli mZKQ== 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=Z4Aq9iJLLJcxSnDNZY1eu/CgoqxUeZREeljyr9Aqkd1DQqi9oia1DZ7OR4fcHmjyYF qhLMI/CxDWeVMHItpCyTFxPQlKeMux8Q1XPC6ZUueLIy0DAuj11+Amdx/jg7eVJNyleN ubx657gG7julwmKO4NxD5GVGFNmafueKSLPRIQXTMJiCeVQyX3JN8bDbdXwg9TQema65 4nY78o9YUhZvoV1HU+JKZpRqhEKJGjTkFzklxYk0zuoUQ/IJnzhfF7td+ReCfeuzGgJK 29wRkTcEEI3m2hqzdS6vD4FM4KLpJrPPX94ectZE4fS8WrdE3cxGJg4BIvxoOMFm0axz duAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xDmm0sG3; 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 e20-20020a056402191400b0041cda3b4120si6323774edz.513.2022.04.10.10.16.35; Sun, 10 Apr 2022 10:17:01 -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=xDmm0sG3; 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 S240725AbiDIIPg (ORCPT + 99 others); Sat, 9 Apr 2022 04:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237199AbiDIIP0 (ORCPT ); Sat, 9 Apr 2022 04:15:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F00F102D; Sat, 9 Apr 2022 01:13:20 -0700 (PDT) From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649491998; 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=xDmm0sG3jd/oqIpzz8MQ38dxRoQ52XMer/238Lvsr3ZhBDH5h7w+uotPNjeiLa8xna5d2b 2YA0DbImJoadBLtlE5Zo2oDLiIkPb4aWcU5DuHqEysd9ba+a55Boo6oRI4h3Pou88EdW1V iLKGLVjUmPX4udhoz7gjJLy/ZiETfod2XfNrGERDtKq0hPCLxFPKRO5ZQv1VIHBAdequMX D7YfO77+caxoJBd4q80qDHqEbZLyQuVpt0x8gkvl1aU3XZ5EQj4hMI+MF7tAZ2vd61+be6 UaV6kEsriP66SRRPET3L4N2/pgU42xejczJiWEV7m5IWSZrCV2dQe1x0op+Wsg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649491998; 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=cnO2eHfwQp0Gdg+4h4uQCl1yl1f8YhWosVFtQh7ktUuNizTZnxjdgfiHEf72xqFaCbMuWw CaH7olfYTqOcG6Bw== 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 2/3] tracing: Introduce trace clock tai Date: Sat, 9 Apr 2022 10:12:59 +0200 Message-Id: <20220409081300.4762-3-kurt@linutronix.de> In-Reply-To: <20220409081300.4762-1-kurt@linutronix.de> References: <20220409081300.4762-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