Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp4046755pxy; Tue, 4 May 2021 16:40:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2JxudwnVjmh56EBf7k6oorCD+sQO/ftbAWG/4R9TAaXud4svI+gCbderuBmde7kFcXdpK X-Received: by 2002:a17:906:8390:: with SMTP id p16mr23471029ejx.430.1620171647632; Tue, 04 May 2021 16:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620171647; cv=none; d=google.com; s=arc-20160816; b=yQCkeamc+JvVVyCJ4nn3i/J+GL8AaNNje++eX238FeoCK7v0p/HDCiKHWMCU+sSDog niSVp0aG5c/0lgTGrt1orQQguTXvT4ZiyxLLC4UWl4za3E0DpQ0s9/TnqE2REDPOPfPD Pok4Au3lI1qJzDlLcWqv57KEl/H05UJfhFLFL3g5/cEEVfceil1p7KTuC+ORcicKmrXl F17YbEBet4LspYDs3wlC3YuPmifjG06HTO4Pl+tqAlFqd2PdDZsxGV7o+tV3hbhO9hrA SjeP+Dtx/zFPJk4VtyyAjK7mckeXrdYsWeqH/Lqe7//gNXySvlqI8exLy8KXU4IxTxGx yAeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=WRP8b2sRc20j5rcg9njusTqKIADVBLQcLXcryZWjpjw=; b=MDaXCDGpoT51JHV4P7WiWzXVuH4wJ2M5nXZjr60WHQF7//a9H1k1vSVZoylkLezcCi G+ttVFApRWTptcnnbdm8zRCCXJzsS71sRcgsL+AJEAFaqibRgGBspibcS3Qppanl+YJR 8ecYVx2ICvq7c7yMLJqVBqiEyAhcixTy8DO7XpOfli4gpPT5lXKkWWaK3p+6oOlCoknB c9KcQWnjKHSr3CAgjdNZz7PqLU7yAYrLWr9YJOGRD8rL24/qQJik4B7GPdsSNVqFZ3UP 0nvoX+9D2ctf+lTiM3piG8/wuvn7jPROcsNZHR2eCHa7Js1MFR88YBUCdfArOo/FZKqE l5TQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si13181410ede.125.2021.05.04.16.40.09; Tue, 04 May 2021 16:40:47 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232037AbhEDW5I (ORCPT + 99 others); Tue, 4 May 2021 18:57:08 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:37595 "EHLO mail-ed1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbhEDW5I (ORCPT ); Tue, 4 May 2021 18:57:08 -0400 Received: by mail-ed1-f50.google.com with SMTP id y26so12345386eds.4; Tue, 04 May 2021 15:56:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WRP8b2sRc20j5rcg9njusTqKIADVBLQcLXcryZWjpjw=; b=Uquxcj2K/mlY/n5GtTPu7vigDFVpa70/bcMufGVVP7JVMCt32Nh74q4A8Ss8YU1aab JvUwKXTvIzI72a/SzAtO1+hdzHDfR6KiCR9sWmPpGFTRgpnqh0LbkAwqR7PCXAGTJEaV bpPWjWU3cMqiPZ3bougq360GiWqqWz+IHlYHvMeLpKby6vZNdG2c3jX26u6+j34H2Ksx xeaNUsTALX9sISs/I4zDxlydUcC0jWQoRx1bGpKNpJxHe4mzH6ksvCTsEE7FzNvb58G8 KDU0pfcyDpp91JkJqm6/vhuhjAymAH+s4+H7euK9ayFopWfiDOqd8x2ZWLTbjWZ7mHmb 2VIw== X-Gm-Message-State: AOAM530kA6Zp+YlQ+raCAmZ41t0CBBgAf3lffhtidMe7xT2N05nCjX1a 8fUw3TZFlxsnxGrugde2Hy1y0dUwdsVSusjRMZD9KVlz X-Received: by 2002:a05:6402:4245:: with SMTP id g5mr28549923edb.306.1620168971089; Tue, 04 May 2021 15:56:11 -0700 (PDT) MIME-Version: 1.0 References: <20201012100205.2750-1-yu.c.chen@intel.com> In-Reply-To: <20201012100205.2750-1-yu.c.chen@intel.com> From: Len Brown Date: Tue, 4 May 2021 18:56:00 -0400 Message-ID: Subject: Re: [PATCH][RFC] tools/power turbostat: Fix ACPI CState format issue To: Chen Yu Cc: "Rafael J. Wysocki" , Zhang Rui , Linux PM list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 6:00 AM Chen Yu wrote: > > Currently if the system boots with BIOS _CST Cstate information > enabled, the turbostat output would have unaligned problems: > > C1_ACPI C2_ACPI C3_ACPI POLL% C1_ACPI% C2_ACPI% C3_ACPI% CPU%c1 > 5 37 138 0.00 0.02 1.30 98.51 0.38 0.00 0.00 99.43 > > The C1_ACPI% is of 8 bytes, so extend the format accordingly if the field name > equals to/longer than 8 bytes. > > After the patch applied: > > C1_ACPI C2_ACPI C3_ACPI POLL% C1_ACPI% C2_ACPI% C3_ACPI% CPU%c1 > 2 42 96 0.00 0.12 2.60 97.09 0.60 Let's shorten the header fields so that a single tab continues to work. this is helpful for processing turbostat output in .TSV format. thx