Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2343802pja; Thu, 26 Mar 2020 13:37:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu9JrVrlUpMjVnIC8MZ7K8qfEGxLBQfKWiQloxuhOTeuWklMT96/WhhJoLLxq2B/5Jni5CW X-Received: by 2002:aca:ad93:: with SMTP id w141mr1728192oie.54.1585255058802; Thu, 26 Mar 2020 13:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585255058; cv=none; d=google.com; s=arc-20160816; b=MUysi9PF5+ug9v8PjEogHKoPBfRYKfaq3gQOK8KO8g50+xQsMsv8YlefiId5kPkcj0 Xvzux7oDvW6vqL4V5FX103TwNf2RYwDNSXL795/Ojw7RJ070HDg+DkPZg2Ze6NMHInjS pDWCXHJWJU5jwfxl3IaUBYd59i/qYyZSKvtoGri+r6yQaINPVzPtAGqMqPVWxxHq3I0h /7p2tiIBVXJqGJHPmg3qNMjzgk0XdqYJ7gzFG9y6cR5xXoxmCMxHP8Qm2wnPUtvUqQZP cbWr50r53EF7dKjNZ7q4IsbUUnRvNzyb9l6BWGOVdCItoYnjOtDz+DqU/RYlExxkb++S Zd6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=t+UEiQ8yfqgCYbdamETpWg51SIJm0Evjj0FdT/Dr3I0=; b=JQyq/H+Z6kI7MAhsdYvQQ04cfqFzTwQwyae1bard29itPoopsV7No9zKxDHc0VCH2N GyWs1cpTEVXU92gOj3MOIn4eBiHzQ+8Jd1u1Axh1LDupwAgePmYddPF4bg3G5zwf9jCl LfAKMmnCv2iWkrTfUBgjs7VTEghER9hu1VR5gmAsVdpvZsy1aoUSlOtRIVL0BXLwccSm zvFYA+QdFtm6f2phNAan8jZGC+PHamkqF8tdV7sC6k/xMgyQ++hrJdb/mKA+qAJ/vx2T viVmumkLSt7XelR3g2+MmJb1RVUNtf2ge9OD7wBTEKDEUJxPU4j2UoKYge5uLAf6Yl82 KzRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bdO4KFht; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si1537504otc.180.2020.03.26.13.37.25; Thu, 26 Mar 2020 13:37:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bdO4KFht; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727560AbgCZUgx (ORCPT + 99 others); Thu, 26 Mar 2020 16:36:53 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35188 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgCZUgw (ORCPT ); Thu, 26 Mar 2020 16:36:52 -0400 Received: by mail-pf1-f196.google.com with SMTP id u68so3386199pfb.2; Thu, 26 Mar 2020 13:36:50 -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:mime-version :content-transfer-encoding; bh=t+UEiQ8yfqgCYbdamETpWg51SIJm0Evjj0FdT/Dr3I0=; b=bdO4KFhttrIM8xOkNnMb3OnmpOWJ5mHVX+21JOsGY0Oj0R9aU+gblAMAv8kB7eTCCC R3wUfUgx4jDPiL0tsu2L5j8g4TW8XyLtYqHrRg6k+V7vcrR7lgJ3uifzWFV6ySXCPYqL ZY8VxLeGHicm5J2YWmZHL9Xxd0EylAYRDLPmd8E3aDCYgAOyTwDedg/N44KDesBPOF+8 oxKJZJuxvAuc24eF/Fqku0+UijjmLSZUjKnAEVhVGKgUFv/fCkyofgSrq+7vzbWxQbn0 WZhHGPh+WWgGckBgnUebIcKS+qYnza92Bu5jGgIVy2GhD608M2+O9NoZckf1au4Wm2fY A46Q== 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:mime-version :content-transfer-encoding; bh=t+UEiQ8yfqgCYbdamETpWg51SIJm0Evjj0FdT/Dr3I0=; b=aO5EidQ9G2ANlesDktFymz+SiXn7bL/rfRzDtOWKdqx+oU1TTGee/6IVlJNMSGhOLz fxMzLeVFJwDbDMd9PftrqZ4He5bPdUvYVnRQAzQ40gnA52xvjQ2ZwUzvf0IX4fTwgapp JSTZR47hRvpaXmJKofky6BQX7tUZfoDsGbnl/yLmwTny6/Cg4hWLyu7vW2IbmcKw0MpJ 0rRdaPAFzUQjgVptGpvqKgvA/EEPp1OtU/FjJOXMCY1oDjBH9Hbk/lWu4/uyKPQVEptE MNgeNm2wqAEM5l2Z5hoaMJAxB0WTUq83aZHL3ViwbdoJbeIYpYZ8i+V8MouSopDKKTy0 ye7g== X-Gm-Message-State: ANhLgQ2af+B9WgA53rjuGDvcbtu2puePCduJ52Zh7y1XR6ADm6ji81LV xxU5s879PIT++nKBR1XhGB3gU+ET X-Received: by 2002:a63:4e22:: with SMTP id c34mr10629783pgb.263.1585255010217; Thu, 26 Mar 2020 13:36:50 -0700 (PDT) Received: from s15.smythies.com (mail.smythies.com. [173.180.45.4]) by smtp.gmail.com with ESMTPSA id z16sm2373767pfr.138.2020.03.26.13.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 13:36:49 -0700 (PDT) From: Doug Smythies X-Google-Original-From: Doug Smythies To: lenb@kernel.org Cc: dsmythies@telus.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH] tools/power/x86/turbostat: Always print idle in the system configuration header Date: Thu, 26 Mar 2020 13:36:37 -0700 Message-Id: <20200326203637.1892-1-dsmythies@telus.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the --quiet option is not used, turbostat prints a useful system configuration header during startup. Inclusion of idle system configuration information is a function of inclusion in the columns choosen to be displayed. Always list the idle system configuration. Signed-off-by: Doug Smythies --- tools/power/x86/turbostat/turbostat.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 33b370865d16..834b86676d00 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -3530,9 +3530,6 @@ dump_sysfs_cstate_config(void) int state; char *sp; - if (!DO_BIC(BIC_sysfs)) - return; - if (access("/sys/devices/system/cpu/cpuidle", R_OK)) { fprintf(outf, "cpuidle not loaded\n"); return; -- 2.25.1