From patchwork Mon Mar 29 12:58:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Tzvetomir Stoyanov (VMware)" X-Patchwork-Id: 12170077 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 4E21AC433E1 for ; Mon, 29 Mar 2021 12:59:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2A3D361934 for ; Mon, 29 Mar 2021 12:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230388AbhC2M62 (ORCPT ); Mon, 29 Mar 2021 08:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbhC2M60 (ORCPT ); Mon, 29 Mar 2021 08:58:26 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF39EC061574 for ; Mon, 29 Mar 2021 05:58:25 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id z1so14112971edb.8 for ; Mon, 29 Mar 2021 05:58:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6oDcldO8a5L3WVns4mVarPPy/ZK33nxnZ8qbXfnLcAo=; b=gmu/YzY8uDXgHx1SjVYmoME+AcoYiBrWHV9tRgCTIxLZ/P4Omv6PW1MFEL0gZodIIR uv13cmGu6T7x0SqyKlQMjlRPA+h0YGnsOl+bjjeixG5LlE6p+gb+QCexllEhMP9fyReK iDXfEyBwviOMKgLkETe5CAVac8YBgb5Yv2Y3XKWfH8e8WdWVHsvLVwHid8YS/a04u59G aZ+ejxkExcivfgD833e2arJLyELeU93Pwhjn7PKDKgSv8p8n7qLPh22VAEPH3ogC0igM axltx0RPoz854gVhY0j01QMnlXbuw8BqNvSNFq51VSaLVw9NbVDCj3r4wXtU52B+8kr9 gL8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6oDcldO8a5L3WVns4mVarPPy/ZK33nxnZ8qbXfnLcAo=; b=cuaTSQckUvxZ/tzQ2yjYUdO1A3DpKzPSFP5g5wNQztCOmshtUDtAc1/RbKjc+8RbM+ uahuhutZ5N8kjxZXSWPFRZl81ZYg5qKtlKNOQFYWgQpwwk7ryvfPr22U6DBhJ7lBgkLa 2np6OOcuf2+UIAorE3o3RTf1OLOrQl0KL8I78+mkDNsugQWhqWYhNkljOhdXVLA7jFCA xRDjmJ8Q+BBmnWzcmo9uyKcvPkLQZHB5nSe/rVYtbAbnQuVnPHPxQiog1Ad2DGLq+8qe kQwZi0MRXxDgYN5dFPjOHK86FrFsLWuJUbTIeQwWxTw6Cr4orHKMLK1NILNblXF4K03O qxhw== X-Gm-Message-State: AOAM532sKmA9ZpgF3B8ttGhb3Ymleafp1LEvgBv7XmAjJRM618+/T85D QvqKX0UuJhK9DjXWFCbpS/AigHg2UeK7nw== X-Google-Smtp-Source: ABdhPJy1Uh7d+w+A4uiqEkP7vYkHYQSg77QeoZhu3+NfEiYBJR+KyvosmovRxEPfscvOIjnARK2liw== X-Received: by 2002:aa7:c654:: with SMTP id z20mr28246612edr.377.1617022704560; Mon, 29 Mar 2021 05:58:24 -0700 (PDT) Received: from oberon.zico.biz ([83.222.187.186]) by smtp.gmail.com with ESMTPSA id d19sm8909075edr.45.2021.03.29.05.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:58:24 -0700 (PDT) From: "Tzvetomir Stoyanov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org Subject: [PATCH 1/4] trace-cmd: Add internal API to check if tsc2nsec is supported Date: Mon, 29 Mar 2021 15:58:18 +0300 Message-Id: <20210329125821.97496-2-tz.stoyanov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329125821.97496-1-tz.stoyanov@gmail.com> References: <20210329125821.97496-1-tz.stoyanov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org A new internal API is added to check is tsc to nanoseconds conversion is supported: bool trace_tsc2nsec_is_supported(void); Signed-off-by: Tzvetomir Stoyanov (VMware) --- tracecmd/include/trace-local.h | 2 ++ tracecmd/trace-record.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/tracecmd/include/trace-local.h b/tracecmd/include/trace-local.h index 7773e9fc..6a4c5f51 100644 --- a/tracecmd/include/trace-local.h +++ b/tracecmd/include/trace-local.h @@ -341,4 +341,6 @@ static inline bool is_digits(const char *s) return true; } +bool trace_tsc2nsec_is_supported(void); + #endif /* __TRACE_LOCAL_H */ diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index 5e69cf48..5c9d800f 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -5827,6 +5827,11 @@ static int get_tsc_nsec(int *shift, int *mult) } #endif +bool trace_tsc2nsec_is_supported(void) +{ + return (get_tsc_nsec(NULL, NULL) == 0); +} + static void parse_record_options(int argc, char **argv, enum trace_cmd curr_cmd, From patchwork Mon Mar 29 12:58:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Tzvetomir Stoyanov (VMware)" X-Patchwork-Id: 12170079 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 89D8EC433C1 for ; Mon, 29 Mar 2021 12:59:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6A1DF61969 for ; Mon, 29 Mar 2021 12:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbhC2M67 (ORCPT ); Mon, 29 Mar 2021 08:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbhC2M61 (ORCPT ); Mon, 29 Mar 2021 08:58:27 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F17BAC061574 for ; Mon, 29 Mar 2021 05:58:26 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id u9so19279300ejj.7 for ; Mon, 29 Mar 2021 05:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=//FH1qVrcYeLLm3XIcmJVkTw6NkOe5FR+5vFfzDuYGQ=; b=rBKLYFu/Df0E0FIudH9jllsBAoOUGf8RaC5JSuT0HSJIRYSUAzhVmEWgvBZ5tswaq8 Gc/7o4MVab1NyLlT3pfLpNmJF5eZ8TGy+wMjZYOE9Q5cd+oSbPRzLKG5Zsx6dwlnlOBg TE89fZfZ2dHlHSfyppzD4TZcsGz3y50cBo29BTTsCjC5WJYBSnYdHGRcWXuFZCjq/NbZ HfUnXe/Qf8SOihzvUwgTtOJenCFqD/wHW7bcc4/puiWApz3N8BmlB6LochaTJyKd1oGc l9rIDc0HOp8Ch9Jdgz0+0nH+5At3VeLNBddOgQgfgpKbgxjzt2FEPM6qMztv3w73Cf0S I44A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=//FH1qVrcYeLLm3XIcmJVkTw6NkOe5FR+5vFfzDuYGQ=; b=O0ES0R4ass6ju33vJyadLBtvO0Q2tyt8dsoDxmYMedETvqX+Zfd9sjE389kwtn1pEY 5Ut1zhtOgxGoRvzzEWI5ypiTDcs/qpZ/X90H3BfHhjdY69OeXwRTOpHUMzmDFW3dAA3O nYox7hcrdFPU4CKpG9Y2++MG5sdWfAcFesjdnkmwmkA6gNKAGDPymQIAau7g5oJ67lQw bP5CtUuKBzyzl+uHZ7mRjvHE+f5JyVoduzcMdIxE83klTGs5K/YKYKW1QZSFeTV0KidH RRaupSl2DsnnzjHl4aifUsgUT4At6CQtLOHn1XIAYaunsLVCxJmP+TySZsEzk5i8sQSO XccQ== X-Gm-Message-State: AOAM531TdKVCpOylS1sc/eXqzg5AVBnqu+sckEs1Te2YpIvPMfH2EkAU EC5GXo/Cw00prPQwp2p/prB1d3BhrTq3DA== X-Google-Smtp-Source: ABdhPJyvUFWSZnT5Q+B8yMVW3MDuwA6q/A1qsV+SgYFqLQY8VskmjldkNpqwNSAwjgjJ+X3Hep6PPA== X-Received: by 2002:a17:906:5e01:: with SMTP id n1mr28515632eju.359.1617022705743; Mon, 29 Mar 2021 05:58:25 -0700 (PDT) Received: from oberon.zico.biz ([83.222.187.186]) by smtp.gmail.com with ESMTPSA id d19sm8909075edr.45.2021.03.29.05.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:58:25 -0700 (PDT) From: "Tzvetomir Stoyanov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org Subject: [PATCH 2/4] trace-cmd: Add tsc2nsec clock to "list -C" command Date: Mon, 29 Mar 2021 15:58:19 +0300 Message-Id: <20210329125821.97496-3-tz.stoyanov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329125821.97496-1-tz.stoyanov@gmail.com> References: <20210329125821.97496-1-tz.stoyanov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org Extended the "trace-cmd list -C" command to show tsc2nsec clock, if supported. Signed-off-by: Tzvetomir Stoyanov (VMware) --- tracecmd/trace-list.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tracecmd/trace-list.c b/tracecmd/trace-list.c index f017c938..63216b43 100644 --- a/tracecmd/trace-list.c +++ b/tracecmd/trace-list.c @@ -264,7 +264,21 @@ static void show_options(void) static void show_clocks(void) { - show_file("trace_clock"); + char *clocks; + int size; + + clocks = tracefs_instance_file_read(NULL, "trace_clock", &size); + if (!clocks) + die("getting clocks"); + if (clocks[size - 1] == '\n') + clocks[size - 1] = 0; + + if (trace_tsc2nsec_is_supported()) + printf("%s %s\n", clocks, TSCNSEC_CLOCK); + else + printf("%s\n", clocks); + + free(clocks); } From patchwork Mon Mar 29 12:58:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Tzvetomir Stoyanov (VMware)" X-Patchwork-Id: 12170081 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 B3BE9C433E1 for ; Mon, 29 Mar 2021 12:59:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8876961970 for ; Mon, 29 Mar 2021 12:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhC2M7B (ORCPT ); Mon, 29 Mar 2021 08:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbhC2M63 (ORCPT ); Mon, 29 Mar 2021 08:58:29 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B78FC061574 for ; Mon, 29 Mar 2021 05:58:28 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id l18so14098588edc.9 for ; Mon, 29 Mar 2021 05:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v8cliC7+wJ1dqQpyuuVuJTTxWawlDDzsxkFfpVfbuP0=; b=k74wDRxrOtAyQHmRaHjzXLNwYsmoKiTN5ffFhbIBXCXMAD2UPJ6glVIunu1gLJ/GIi BWqYYcGRFvM7fHtuvEtOCOj3GeZBYQfeHPnwqu6GgDZxw3cldXiyoSPDFoWnx1TwBJem QMWAlH5YhubavUqmAxu2zjW8kp3lBDX/izNdlAK3oNQOLoGwV6+wdF2YXpb0qWOkzvgD MIs/o7cB+aZbsdCI3abf2ykJ4cuuyH/X2EUiY0di+PkC88KeobTWywopzYv3iPwh6nD4 YHe2/j7QWVkhtVs9tugCB0VGVDdTOcqUVSGjJqmB4y73oifL2FTRS9PeCJ0BRJ/iDinK UoAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v8cliC7+wJ1dqQpyuuVuJTTxWawlDDzsxkFfpVfbuP0=; b=cGC7ThZPGHBMVT9hIgb2IGla5I/CF2H0W6yIhCNVwsiYkBKlWsugCuA8APaNOcmrfX YjWGXsKnvGeZvYAb5bn8LU4Z6xRMjVAds9agxPnMo4sqgv0vCADcM255eTcIEGbzEzQp /iJ70uNQvhnk9NP6DNa0X7++wp36r86YEyNgJc9UBuRO+ZttOO36EzrA0guajFP/6/mk rKkScUr5LuuK0j0+tv/D+esPH/MYZA+o/z8I3t/SlDDpDJhGXUrD22Avxz06Ab4H1gPn 40KobsZLQL218v/RTWZFIFmqQEhQYvLolFyrwiLXD+nmjAoj7/D8z99gDt5D1sHqdbej Fu1g== X-Gm-Message-State: AOAM530M3bcVclbPoSIm6wGpsWw8ZSASaXkKJ4J5Q6ldCFbKm/DAJwIw 0Z/WR8kz9DupGIp6OXsNAy8LlccCdWfizg== X-Google-Smtp-Source: ABdhPJyQD6de4PuCOdd9mfeOmaIraS2rfOam9jRuEGsRd/gT1eTEqoztvnXmw3h3ZhXYxfMf6bVX6A== X-Received: by 2002:aa7:d294:: with SMTP id w20mr28639849edq.68.1617022706842; Mon, 29 Mar 2021 05:58:26 -0700 (PDT) Received: from oberon.zico.biz ([83.222.187.186]) by smtp.gmail.com with ESMTPSA id d19sm8909075edr.45.2021.03.29.05.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:58:26 -0700 (PDT) From: "Tzvetomir Stoyanov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org Subject: [PATCH 3/4] trace-cmd: Document --tsc2nsec option Date: Mon, 29 Mar 2021 15:58:20 +0300 Message-Id: <20210329125821.97496-4-tz.stoyanov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329125821.97496-1-tz.stoyanov@gmail.com> References: <20210329125821.97496-1-tz.stoyanov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org Document the "trace-cmd record --tsc2nsec" option. Signed-off-by: Tzvetomir Stoyanov (VMware) --- Documentation/trace-cmd/trace-cmd-record.1.txt | 5 +++++ tracecmd/trace-usage.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Documentation/trace-cmd/trace-cmd-record.1.txt b/Documentation/trace-cmd/trace-cmd-record.1.txt index 643659ad..d992002e 100644 --- a/Documentation/trace-cmd/trace-cmd-record.1.txt +++ b/Documentation/trace-cmd/trace-cmd-record.1.txt @@ -349,6 +349,11 @@ OPTIONS at the beginning and at the end of the trace. Timestamps synchronization with guests works only if there is support for VSOCK.\n" +*--tsc2nsec*:: + Convert the current clock to nanoseconds, using tsc multiplier and shift from the Linux + kernel's perf interface. This option does not change the trace clock, just assumes that + the tsc multiplier and shift are applicable for the selected clock. You may use the + "-C tsc2nsec" clock, if not sure what clock to select. *--stderr*:: Have output go to stderr instead of stdout, but the output of the command executed will not be changed. This is useful if you want to monitor the diff --git a/tracecmd/trace-usage.c b/tracecmd/trace-usage.c index 22537d20..386e88fe 100644 --- a/tracecmd/trace-usage.c +++ b/tracecmd/trace-usage.c @@ -62,6 +62,8 @@ static struct usage_help usage_help[] = { " --no-filter include trace-cmd threads in the trace\n" " --proc-map save the traced processes address map into the trace.dat file\n" " --user execute the specified [command ...] as given user\n" + " --tsc2nsec Convert the current clock to nanoseconds, using tsc multiplier and shift from the Linux" + " kernel's perf interface\n" " --tsync-interval set the loop interval, in ms, for timestamps synchronization with guests:" " If a negative number is specified, timestamps synchronization is disabled" " If 0 is specified, no loop is performed - timestamps offset is calculated only twice," From patchwork Mon Mar 29 12:58:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Tzvetomir Stoyanov (VMware)" X-Patchwork-Id: 12170083 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 D7E0BC433E2 for ; Mon, 29 Mar 2021 12:59:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AF7276193A for ; Mon, 29 Mar 2021 12:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231258AbhC2M7A (ORCPT ); Mon, 29 Mar 2021 08:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230470AbhC2M6a (ORCPT ); Mon, 29 Mar 2021 08:58:30 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF52C061756 for ; Mon, 29 Mar 2021 05:58:29 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id e14so19248826ejz.11 for ; Mon, 29 Mar 2021 05:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NBH/q24YI2F1BzXYwy8rKR+joOw2u2aDBJdvfM4xY8Y=; b=RufbENARZmC/xPIoCfnJm718zeWLcHGl1twXMtX8ohFE9HciH9cyJUSGF3hbJU340d aqyRgjqyu8JMJMIIGw8Gmk8vB5Ihj8KfqGuvvzacnHJ+MarjD7zObj3G/wLTZJ9RWvQT nBtG+xMU1WBtQ4N9pSnwpay5MG7ZPdKOFs7XEAPfO/TL85+x909H6Jnn//Se59uJNp8o URSd4OYWA62803m/H3e9wCRp2BpEGCIozyZ+aA2IsMXGgrSEEtWA47UcAEoTylwmv/U/ FUQH0z2BZIDphJ0okb798+FcD8Hg7VwywUKtI0q3zA2cTXS/P/hc4cMDnaBaTzOe1IG3 F9qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NBH/q24YI2F1BzXYwy8rKR+joOw2u2aDBJdvfM4xY8Y=; b=NtLo1HZSpg3HPOVJsRLtRNtTv1V1MGGyJUrRUKO+4ta4Sp//fB7OwKBcXKYHtn7F4a OokrLWpIMpyYYQrOZswUtpcus6J48J2WnlceidVkm1vzMalWMvBFUBZe7wbZTEtvAlHi PjhelF0yvFtzpD+jgwe4UUphX5ruqDoJ2akcKZps8et3cP15MVLaGbsc3FYyny1gApwe nJK+CrfEGZmEAzBTCfQnvxm9+bG4QPaNo631l1Rx4tASRlAo5HWkxb2vZMsHGOIZVDtT bUIC38OCw4yn17iueK/1u1v8kDprUzLX2pn0K0uieW9oxZwPiDMx2C97tdwSYL72D7ww 2gNQ== X-Gm-Message-State: AOAM530oL05lsxKwc4crvQhEa/+2LN5qGcaJPC+nzuKmOBSTR/pYxI/1 u20QXs0YvyvlAcE09WB40A4= X-Google-Smtp-Source: ABdhPJzKLCCaqIO620U7hF8GIgyfHQ73sOphTRx7F++c/tlvPDnwzZQNmFJKGiLdXMKOehtmEzK8ng== X-Received: by 2002:a17:906:2795:: with SMTP id j21mr28363234ejc.283.1617022707786; Mon, 29 Mar 2021 05:58:27 -0700 (PDT) Received: from oberon.zico.biz ([83.222.187.186]) by smtp.gmail.com with ESMTPSA id d19sm8909075edr.45.2021.03.29.05.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 05:58:27 -0700 (PDT) From: "Tzvetomir Stoyanov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org Subject: [PATCH 4/4] trace-cmd: Document --raw-ts option Date: Mon, 29 Mar 2021 15:58:21 +0300 Message-Id: <20210329125821.97496-5-tz.stoyanov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329125821.97496-1-tz.stoyanov@gmail.com> References: <20210329125821.97496-1-tz.stoyanov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org Documented "trace-cmd report --raw-ts" option Signed-off-by: Tzvetomir Stoyanov (VMware) --- Documentation/trace-cmd/trace-cmd-report.1.txt | 3 +++ tracecmd/trace-usage.c | 1 + 2 files changed, 4 insertions(+) diff --git a/Documentation/trace-cmd/trace-cmd-report.1.txt b/Documentation/trace-cmd/trace-cmd-report.1.txt index 766c9a57..72b47065 100644 --- a/Documentation/trace-cmd/trace-cmd-report.1.txt +++ b/Documentation/trace-cmd/trace-cmd-report.1.txt @@ -309,6 +309,9 @@ OPTIONS Make sure no timestamp goes backwards, and if it does, print out a warning message of the fact. +*--raw-ts*:: + Display raw timestamps, without any corrections. + EXAMPLES -------- diff --git a/tracecmd/trace-usage.c b/tracecmd/trace-usage.c index 386e88fe..98247074 100644 --- a/tracecmd/trace-usage.c +++ b/tracecmd/trace-usage.c @@ -233,6 +233,7 @@ static struct usage_help usage_help[] = { " previous data file, in which case it becomes default\n" " --ts-diff Show the delta timestamp between events.\n" " --ts-check Check to make sure no time stamp on any CPU goes backwards.\n" + " --raw-ts Display raw timestamps, without any corrections.\n" }, { "stream",