Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp1479911pxw; Sun, 10 Apr 2022 03:55:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykC2MgbAyqwdCHQiYJJU4eD/ono0owZHHAvASqk14u9zITbuAFuKCO1N0uhW4yh5vni6gc X-Received: by 2002:a17:902:70cb:b0:158:424e:a657 with SMTP id l11-20020a17090270cb00b00158424ea657mr4928430plt.6.1649588105936; Sun, 10 Apr 2022 03:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649588105; cv=none; d=google.com; s=arc-20160816; b=RlPdw4fgBhYA6LJsnMQ6l6S+hshquunq1FOO71EMiTyyLYCYtH7pdo5Hnd4QGduNML 0wDBWOQMo4qCHPkKdc8b8PSjVdRSqQtKYQlzWGPYp5s4KS0co4RRVC8MsDMk3tmT+5Di 0v3NdakTLcWxpLFem7CFlQCU+SAYu+kdqVfTT0GfTxSRCCAhiC/aA3VYOmLV4oxhO9cc qY+fnSF3OTHtjUbpJnNu/nCVcz0NLNaUX9fpHpe6FXPpxOh3fB9ncrZKg5wz6RDu/orf kcjEM5Fjp5lGlC7gPVAFjLAsJgKBmCj6CsRw1szsyV3eQCwdJSDi9GCYR8vOlEIwMoAh H+XQ== 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 :message-id:date:subject:cc:to:dkim-signature:dkim-signature:from; bh=pFzCSKR7Mj3eFHDV5uYg79nOA2mgZ7Z8ghkTdFnmA2M=; b=NXMJGZSYSaxslYkBr22WQ8n4xkAUh5+OIfBmNF8IAJYv56e9Y9TnOhKkjS7wytOLMU LI6bI4tM1MzBXhhrCWr4kNqGnQdxOmC+z7YhVTZK0xB2mwofNwu2Ku76/eSPXv0aSv36 H4Xbl97bbyWXTiY+vbycaO968IQYTqem+CFG7g8MlVkA8ur7R5aZdq7xHTLnS7zOgAAy X8UPEmBEfPqZvDbKE6VfrIx8COhnRufXn/Dh8cDWD0+AECuZ9+xgLDzRu+GixiUQLwU2 bd9UCmw3XZu8E3igrSGIlxf76Eb56nSOVuI0ebS0bIjCSg+6khtuCu3B3Nn/a+qTJJPO Zpig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=M6gInquB; dkim=neutral (no key) header.i=@linutronix.de header.b=9bkcjq9J; 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 f3-20020a63de03000000b003816043eec7si6241199pgg.188.2022.04.10.03.54.53; Sun, 10 Apr 2022 03:55:05 -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=M6gInquB; dkim=neutral (no key) header.i=@linutronix.de header.b=9bkcjq9J; 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 S237584AbiDIIP1 (ORCPT + 99 others); Sat, 9 Apr 2022 04:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234210AbiDIIPZ (ORCPT ); Sat, 9 Apr 2022 04:15:25 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 116942DD58; 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=1649491997; 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; bh=pFzCSKR7Mj3eFHDV5uYg79nOA2mgZ7Z8ghkTdFnmA2M=; b=M6gInquBuYlHQLj4q/VchocaySCfZdv/kJ++HxEh2gqjIKrL1GL9VX0hUP7anUDktyrTRN Su7MP338oGS0Hav7B3qQxsX7BvS9D56YLklP3YNLr+nSfz4k6NmBlzmeZqoYeSn4eXlk45 EjLK3CZqtMIgExl9O+92KKzECbdR3UjV4ERGZHy+sHLs+42vtGTnwxCp0zd9zaFL8a/BUA 66UrMytVHwsBr536/qNLDeNcODcrwSc6ezAHg6IaBVeqtsjYWEQ7SV/bcefk2htSeDiPso LaiQmsE5fB7SLEuUDRqAV7b8t8cyvQ/J8fcEnmenvglh+HrD/CJqbd2Oz9ei4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649491997; 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; bh=pFzCSKR7Mj3eFHDV5uYg79nOA2mgZ7Z8ghkTdFnmA2M=; b=9bkcjq9J6pVEfSsRoRfO9VCadpyN+lDsN0thArHJd4KgI5+1f23CRhhsDckGTg+Xcsg8iP ekf4JvL/6a70VFCA== 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 0/3] tracing: Introduce trace clock tai Date: Sat, 9 Apr 2022 10:12:57 +0200 Message-Id: <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 Hi, the Linux kernel tracing infrastructure has support for using different clocks to generate timestamps for trace events. Especially in TSN networks it's useful to have TAI as trace clock, because the application scheduling is done in accordance to the network time, which is based on TAI. With a tai trace_clock in place, it becomes very convenient to correlate network activity with Linux kernel application traces. However, there's no fast accessor for CLOCK_TAI yet. Therefore, patch #1 is adding one. Patch #2 introduces the clock and the last one adds documentation for it. Thanks, Kurt Kurt Kanzenbach (3): timekeeping: Introduce fast accessor to clock tai tracing: Introduce trace clock tai tracing: Add documentation for trace clock tai Documentation/trace/ftrace.rst | 12 ++++++++++++ include/linux/timekeeping.h | 1 + kernel/time/timekeeping.c | 17 +++++++++++++++++ kernel/trace/trace.c | 1 + 4 files changed, 31 insertions(+) -- 2.30.2