Skip to content

turbostat: Build fixes, 32-bit support, and cleanups

Josh Triplett lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 2 repliesIn review
  2. v11 patch 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8turbostat: Don't put unprocessed uapi headers in the include pathtools/power/x86/turbostat/Makefile tools/power/x86/turbostat/turbostat.c+2 -20 replies
2/8turbostat: Don't attempt to printf an off_t with %zxtools/power/x86/turbostat/turbostat.c+1 -10 replies
3/8turbostat: Use GCC's CPUID functions to support PICtools/power/x86/turbostat/turbostat.c+6 -50 replies
4/8turbostat: Check return value of fscanftools/power/x86/turbostat/turbostat.c+16 -40 replies
5/8turbostat: Add a helper to parse a single int out of a filetools/power/x86/turbostat/turbostat.c+24 -570 replies
6/8turbostat: Factor out common function to open file and exit on failuretools/power/x86/turbostat/turbostat.c+16 -151 reply
7/8turbostat: Clean up error handling; disambiguate error messages; use err and errxtools/power/x86/turbostat/turbostat.c+38 -690 replies
8/8turbostat: Add a .gitignore to ignore the compiled turbostat binarytools/power/x86/turbostat/.gitignore+1 -00 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMike Frysinger
SeriesA-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] turbostat: Build fixes, 32-bit support, and cleanups

This patch series includes build fixes, warning fixes, and cleanups discovered while adding turbostat to ChromeOS.

The first and third patches should go into stable, and I've CCed them accordingly.

The first patch unbreaks the turbostat build on systems with older versions of kernel headers.

The third patch is required to build on 32-bit x86.

The second and fourth patches fix warnings.

Patches 5-7 are code cleanups, and the last patch adds turbostat itself to .gitignore.

Josh Triplett (8):
turbostat: Don't put unprocessed uapi headers in the include path
turbostat: Don't attempt to printf an off_t with %zx
turbostat: Use GCC's CPUID functions to support PIC
turbostat: Check return value of fscanf
turbostat: Add a helper to parse a single int out of a file
turbostat: Factor out common function to open file and exit on failure
turbostat: Clean up error handling; disambiguate error messages; use
err and errx
turbostat: Add a .gitignore to ignore the compiled turbostat binary

 tools/power/x86/turbostat/.gitignore  |   1 +
 tools/power/x86/turbostat/Makefile    |   2 +-
 tools/power/x86/turbostat/turbostat.c | 210 +++++++++++++---------------------
 3 files changed, 82 insertions(+), 131 deletions(-)
 create mode 100644 tools/power/x86/turbostat/.gitignore
Signature · 1 line
1.8.4.rc3