From: "David E. Box" <david.e.box@linux.intel.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Hans de Goede" <hansg@kernel.org>
Cc: "David E. Box" <david.e.box@linux.intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 05/12] tools/arch/x86/pmtctl: Add 'list' command
Date: Sun, 22 Nov 2026 11:34:00 -0800 [thread overview]
Message-ID: <770cd5933dd8288d95dfabf9342877c8860c8624.1795374925.git.david.e.box@linux.intel.com> (raw)
In-Reply-To: <cover.1795374925.git.david.e.box@linux.intel.com>
Add the 'list' command, which shows the metric definitions of the PMT
telemetry devices on the system: one group per GUID with its platform,
number of metrics and description, followed by each metric's name and
description. A GUID shared by several devices is listed once. On a
terminal, descriptions are wrapped to its width; otherwise each is
printed on one line so the output is easy to search.
Metric definitions are loaded by pmtctl_ctx_load_tss() from the path
given with -J or, without it, from the directory they are installed in
(/usr/share/pmtctl by default, set with DEFSDIR at build time).
'make install' installs the definitions converted by
'make defs-json-fetch', if any. A missing default directory is not an
error, but definitions that fail to load are.
--guid and --device restrict the listing to the devices with a GUID or
to one device. The selection is done by pmtctl_select_devices(), which
keeps the device order and is shared with the commands added later. If
none of the selected devices has metric definitions, 'list' fails with
an error rather than printing nothing.
Also add print_chars() to lib/common.c for the indents and separator
lines; 'stat' uses it as well.
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
---
V2 changes:
- Replaces the metric listing of v1 13, with -J from v1 12.
- Each metric is listed once per GUID; v1 listed it once per device
sharing the GUID.
- Descriptions are wrapped only on a terminal.
- Definitions come from -J or the installed /usr/share/pmtctl.
- --guid and --device replace -d; the pager and -X/--keep are dropped.
- A selection without metric definitions is an error.
tools/arch/x86/pmtctl/Makefile | 9 +
tools/arch/x86/pmtctl/include/lib/common.h | 7 +
tools/arch/x86/pmtctl/include/lib/pmtctl.h | 26 ++
tools/arch/x86/pmtctl/include/pmtctl_cli.h | 6 +
tools/arch/x86/pmtctl/lib/common.c | 6 +
tools/arch/x86/pmtctl/lib/pmtctl.c | 90 +++++++
tools/arch/x86/pmtctl/src/cmd_list.c | 292 +++++++++++++++++++++
tools/arch/x86/pmtctl/src/main.c | 17 +-
8 files changed, 452 insertions(+), 1 deletion(-)
create mode 100644 tools/arch/x86/pmtctl/src/cmd_list.c
diff --git a/tools/arch/x86/pmtctl/Makefile b/tools/arch/x86/pmtctl/Makefile
index 8b723f96904b..bb1a92e3dd6f 100644
--- a/tools/arch/x86/pmtctl/Makefile
+++ b/tools/arch/x86/pmtctl/Makefile
@@ -2,10 +2,12 @@
# Makefile for Intel Platform Monitoring Technology (PMT) tool
BINDIR ?= /usr/sbin
+DEFSDIR ?= /usr/share/pmtctl
CFLAGS = -Wextra
override CFLAGS += -O2 -Wall -D_GNU_SOURCE -Iinclude -I../../../include
+override CFLAGS += -DPMTCTL_DEFS_DIR='"$(DEFSDIR)"'
# The jansson check is skipped for targets that don't compile anything
ifneq ($(filter-out clean defs-json-fetch defs-json-pull defs-clean,$(or $(MAKECMDGOALS),pmtctl)),)
@@ -25,6 +27,7 @@ OBJS := \
lib/pmtctl.o \
lib/tss.o \
lib/tss_json.o \
+ src/cmd_list.o \
src/main.o
pmtctl: $(OBJS)
@@ -92,3 +95,9 @@ clean:
install: pmtctl
install -d $(DESTDIR)$(BINDIR)
install -m 755 -p pmtctl $(DESTDIR)$(BINDIR)/pmtctl
+ @# Metric definitions, if 'make defs-json-fetch' was run
+ @if ls $(DEFS_DIR)/*.json >/dev/null 2>&1; then \
+ install -d $(DESTDIR)$(DEFSDIR); \
+ install -m 644 -p $(DEFS_DIR)/*.json $(DESTDIR)$(DEFSDIR); \
+ echo "Installed metric definitions to $(DESTDIR)$(DEFSDIR)"; \
+ fi
diff --git a/tools/arch/x86/pmtctl/include/lib/common.h b/tools/arch/x86/pmtctl/include/lib/common.h
index 0e1950bffc43..018b21db4e08 100644
--- a/tools/arch/x86/pmtctl/include/lib/common.h
+++ b/tools/arch/x86/pmtctl/include/lib/common.h
@@ -61,4 +61,11 @@ int parse_u32(const char *s, int base, uint32_t *val);
*/
int path_printf(char *buf, size_t size, const char *fmt, ...) __printf(3, 4);
+/**
+ * print_chars - print a character repeatedly to stdout
+ * @c: character to print
+ * @n: number of times to print it
+ */
+void print_chars(int c, size_t n);
+
#endif
diff --git a/tools/arch/x86/pmtctl/include/lib/pmtctl.h b/tools/arch/x86/pmtctl/include/lib/pmtctl.h
index 9da9e1f221ca..5d3586bf31e2 100644
--- a/tools/arch/x86/pmtctl/include/lib/pmtctl.h
+++ b/tools/arch/x86/pmtctl/include/lib/pmtctl.h
@@ -2,11 +2,18 @@
#ifndef PMTCTL_H
#define PMTCTL_H
+#include <stdbool.h>
#include <stddef.h>
+#include <stdint.h>
#include "lib/device.h"
#include "lib/tss.h"
+/* Installed metric definitions, used when no path is given */
+#ifndef PMTCTL_DEFS_DIR
+#define PMTCTL_DEFS_DIR "/usr/share/pmtctl"
+#endif
+
/* State for one pmtctl command, owned by the command */
struct pmtctl_ctx {
struct pmt_device *devices;
@@ -14,8 +21,27 @@ struct pmtctl_ctx {
struct pmt_tss_db tss;
};
+/**
+ * struct pmt_device_filter - devices a command acts on
+ * @has_guid: select only the devices whose GUID is @guid
+ * @guid: the GUID to match, used only if @has_guid is set
+ * @name: if not NULL, select only the device with this name, e.g. "telem3"
+ *
+ * A device is selected if it matches every filter that is set, so a zeroed
+ * filter selects all devices.
+ */
+struct pmt_device_filter {
+ bool has_guid;
+ uint32_t guid;
+ const char *name;
+};
+
int pmtctl_ctx_init(struct pmtctl_ctx *ctx);
+int pmtctl_ctx_load_tss(struct pmtctl_ctx *ctx, const char *json_path);
void pmtctl_ctx_free(struct pmtctl_ctx *ctx);
+int pmtctl_select_devices(const struct pmtctl_ctx *ctx, const struct pmt_device_filter *filter,
+ const struct pmt_device ***devs, size_t *num_devs);
+int pmt_device_filter_set_guid(struct pmt_device_filter *filter, const char *arg);
/*
* Free the context with pmtctl_ctx_free() at scope exit:
diff --git a/tools/arch/x86/pmtctl/include/pmtctl_cli.h b/tools/arch/x86/pmtctl/include/pmtctl_cli.h
index 550a61b97aca..9551c581cf1b 100644
--- a/tools/arch/x86/pmtctl/include/pmtctl_cli.h
+++ b/tools/arch/x86/pmtctl/include/pmtctl_cli.h
@@ -9,4 +9,10 @@ enum pmtctl_exit {
PMTCTL_EXIT_SYSTEM,
};
+struct pmt_global_opts {
+ const char *json_path; /* -J, or NULL for the default directory */
+};
+
+int cmd_list(int argc, char **argv, const struct pmt_global_opts *gopts);
+
#endif
diff --git a/tools/arch/x86/pmtctl/lib/common.c b/tools/arch/x86/pmtctl/lib/common.c
index adf546df0911..85e887b348e0 100644
--- a/tools/arch/x86/pmtctl/lib/common.c
+++ b/tools/arch/x86/pmtctl/lib/common.c
@@ -73,3 +73,9 @@ int path_printf(char *buf, size_t size, const char *fmt, ...)
return 0;
}
+
+void print_chars(int c, size_t n)
+{
+ while (n--)
+ putchar(c);
+}
diff --git a/tools/arch/x86/pmtctl/lib/pmtctl.c b/tools/arch/x86/pmtctl/lib/pmtctl.c
index b218bac15824..dba015cfb574 100644
--- a/tools/arch/x86/pmtctl/lib/pmtctl.c
+++ b/tools/arch/x86/pmtctl/lib/pmtctl.c
@@ -1,5 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-only
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "lib/common.h"
#include "lib/device.h"
+#include "lib/log.h"
#include "lib/pmtctl.h"
#include "lib/tss.h"
@@ -15,6 +22,33 @@ int pmtctl_ctx_init(struct pmtctl_ctx *ctx)
return telem_scan(&ctx->devices, &ctx->num_devices);
}
+/**
+ * pmtctl_ctx_load_tss - load metric definitions from JSON
+ * @ctx: initialized context without definitions
+ * @json_path: a definition file, a directory of them, or NULL for PMTCTL_DEFS_DIR
+ *
+ * A missing default directory is not an error: @ctx is left without
+ * definitions.
+ *
+ * Return: 0 on success or a negative errno.
+ */
+int pmtctl_ctx_load_tss(struct pmtctl_ctx *ctx, const char *json_path)
+{
+ if (!json_path) {
+ /*
+ * Definitions are optional, so a default directory that doesn't
+ * exist just means none are installed. Any other problem with it
+ * is reported by the loader.
+ */
+ if (access(PMTCTL_DEFS_DIR, F_OK) && errno == ENOENT)
+ return 0;
+
+ json_path = PMTCTL_DEFS_DIR;
+ }
+
+ return pmt_tss_db_load_json(json_path, &ctx->tss);
+}
+
void pmtctl_ctx_free(struct pmtctl_ctx *ctx)
{
pmt_tss_db_free(&ctx->tss);
@@ -22,3 +56,59 @@ void pmtctl_ctx_free(struct pmtctl_ctx *ctx)
ctx->devices = NULL;
ctx->num_devices = 0;
}
+
+/**
+ * pmtctl_select_devices - select the devices matching a filter
+ * @ctx: initialized context
+ * @filter: the devices to select, see struct pmt_device_filter
+ * @devs: returns the selected devices in ctx->devices order, freed with free()
+ * @num_devs: returns the number of entries in @devs, which may be 0
+ *
+ * Return: 0 on success or -ENOMEM.
+ */
+int pmtctl_select_devices(const struct pmtctl_ctx *ctx, const struct pmt_device_filter *filter,
+ const struct pmt_device ***devs, size_t *num_devs)
+{
+ const struct pmt_device **sel;
+ size_t n = 0;
+
+ sel = calloc(ctx->num_devices, sizeof(*sel));
+ if (!sel)
+ return -ENOMEM;
+
+ for (size_t i = 0; i < ctx->num_devices; i++) {
+ const struct pmt_device *dev = &ctx->devices[i];
+
+ if (filter->has_guid && dev->guid != filter->guid)
+ continue;
+
+ if (filter->name && strcmp(dev->name, filter->name))
+ continue;
+
+ sel[n++] = dev;
+ }
+
+ *devs = sel;
+ *num_devs = n;
+
+ return 0;
+}
+
+/**
+ * pmt_device_filter_set_guid - restrict a filter to the devices with a GUID
+ * @filter: filter to change
+ * @arg: GUID in hex, as given on the command line
+ *
+ * Return: 0 on success, or -EINVAL with an error message if @arg isn't a GUID.
+ */
+int pmt_device_filter_set_guid(struct pmt_device_filter *filter, const char *arg)
+{
+ if (parse_u32(arg, 16, &filter->guid)) {
+ log_err("invalid GUID '%s'", arg);
+ return -EINVAL;
+ }
+
+ filter->has_guid = true;
+
+ return 0;
+}
diff --git a/tools/arch/x86/pmtctl/src/cmd_list.c b/tools/arch/x86/pmtctl/src/cmd_list.c
new file mode 100644
index 000000000000..cefcb465969a
--- /dev/null
+++ b/tools/arch/x86/pmtctl/src/cmd_list.c
@@ -0,0 +1,292 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * pmtctl list: show the metric definitions of the PMT telemetry devices
+ */
+#include <errno.h>
+#include <getopt.h>
+#include <limits.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/ioctl.h>
+#include <unistd.h>
+
+#include <linux/kernel.h>
+
+#include "lib/common.h"
+#include "lib/device.h"
+#include "lib/log.h"
+#include "lib/pmtctl.h"
+#include "lib/tss.h"
+#include "pmtctl_cli.h"
+
+#define LIST_BASE_INDENT 2
+#define LIST_DEFAULT_COLS 80
+
+/* Indent of the description under a GUID group header and under a metric */
+#define LIST_GROUP_DESC_INDENT 4
+#define LIST_METRIC_DESC_INDENT 8
+
+/* Width limits of the line under a group header */
+#define LIST_SEP_MIN ((size_t)8)
+#define LIST_SEP_MAX ((size_t)100)
+
+/* Values for long-only options, above any short option character */
+enum {
+ OPT_LIST_GUID = CHAR_MAX + 1,
+ OPT_LIST_DEVICE,
+};
+
+struct list_opts {
+ bool show_help;
+ struct pmt_device_filter filter;
+};
+
+static void list_usage(FILE *out)
+{
+ fprintf(out,
+ "Usage: pmtctl list [options]\n"
+ "\n"
+ "List PMT metrics.\n"
+ "\n"
+ "Options:\n"
+ " -h, --help Show this help.\n"
+ " --guid <hex> Restrict to devices with this GUID.\n"
+ " --device <name> Restrict to one device, e.g. telem3.\n");
+}
+
+static int parse_list_opts(struct list_opts *opts, int argc, char **argv)
+{
+ static const struct option long_opts[] = {
+ { "help", no_argument, NULL, 'h' },
+ { "guid", required_argument, NULL, OPT_LIST_GUID },
+ { "device", required_argument, NULL, OPT_LIST_DEVICE },
+ {}
+ };
+ int opt;
+
+ optind = 1;
+
+ while ((opt = getopt_long(argc, argv, "h", long_opts, NULL)) != -1) {
+ switch (opt) {
+ case 'h':
+ opts->show_help = true;
+ break;
+ case OPT_LIST_GUID:
+ if (pmt_device_filter_set_guid(&opts->filter, optarg))
+ return -EINVAL;
+ break;
+ case OPT_LIST_DEVICE:
+ opts->filter.name = optarg;
+ break;
+ default:
+ return -EINVAL;
+ }
+ }
+
+ if (optind != argc) {
+ log_err("unexpected extra arguments to 'list'");
+ return -EINVAL;
+ }
+
+ return 0;
+}
+
+/* Return: the terminal width if stdout is a terminal, otherwise 0 (don't wrap) */
+static size_t output_columns(void)
+{
+ struct winsize ws;
+
+ if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws))
+ return 0;
+
+ if (!ws.ws_col)
+ return LIST_DEFAULT_COLS;
+
+ return ws.ws_col;
+}
+
+/*
+ * Print @s indented by @indent columns, with each run of whitespace printed
+ * as one space, or nothing if @s is empty. With @cols nonzero, wrap it at
+ * whitespace to fit @cols columns; a word longer than a line is not split.
+ * Widths are counted in bytes, which matches the ASCII definitions.
+ */
+static void print_description(const char *s, size_t indent, size_t cols)
+{
+ size_t column = indent;
+ bool line_start = true;
+
+ s += strspn(s, " \t\n");
+ if (!*s)
+ return;
+
+ print_chars(' ', indent);
+
+ while (*s) {
+ size_t wlen = strcspn(s, " \t\n");
+
+ if (cols && !line_start && column + 1 + wlen > cols) {
+ putchar('\n');
+ print_chars(' ', indent);
+ column = indent;
+ line_start = true;
+ }
+
+ if (!line_start) {
+ putchar(' ');
+ column++;
+ }
+
+ fwrite(s, 1, wlen, stdout);
+ column += wlen;
+ line_start = false;
+
+ s += wlen;
+ s += strspn(s, " \t\n");
+ }
+
+ putchar('\n');
+}
+
+/* Return: the platform of @info for display, "---" if it is unknown */
+static const char *tss_platform(const struct pmt_tss_info *info)
+{
+ if (info && info->platform)
+ return info->platform;
+
+ return "---";
+}
+
+/*
+ * Print the header of the group of @guid: its platform and, if it has metric
+ * definitions (@info is not NULL), their number and the description, wrapped
+ * at @cols if nonzero
+ */
+static void print_guid_group_line(uint32_t guid, const struct pmt_tss_info *info, size_t cols)
+{
+ print_chars(' ', LIST_BASE_INDENT);
+ printf("GUID %08x platform: %s", guid, tss_platform(info));
+ if (info)
+ printf(" %zu metric%s", info->num_metrics, info->num_metrics == 1 ? "" : "s");
+ putchar('\n');
+
+ if (info && info->description)
+ print_description(info->description, LIST_GROUP_DESC_INDENT, cols);
+}
+
+/*
+ * Underline a group header up to where its longest metric name would end at
+ * the description indent, within LIST_SEP_MIN and LIST_SEP_MAX columns
+ */
+static void print_separator(const struct pmt_tss_info *info)
+{
+ size_t width = 0;
+
+ for (size_t i = 0; i < info->num_metrics; i++)
+ width = max(width, strlen(info->metrics[i].name));
+
+ width = clamp(width + LIST_METRIC_DESC_INDENT - LIST_BASE_INDENT, LIST_SEP_MIN,
+ LIST_SEP_MAX);
+
+ print_chars(' ', LIST_BASE_INDENT);
+ print_chars('-', width);
+ putchar('\n');
+}
+
+/*
+ * List the metrics of the GUIDs of @devs, which are sorted by GUID.
+ * Return: whether any metric was listed.
+ */
+static bool do_list_metrics(const struct pmtctl_ctx *ctx, const struct pmt_device **devs,
+ size_t num_devs)
+{
+ size_t cols = output_columns();
+ bool listed = false;
+
+ for (size_t i = 0; i < num_devs; i++) {
+ const struct pmt_tss_info *info;
+
+ /* List each GUID once, however many devices have it */
+ if (i && devs[i]->guid == devs[i - 1]->guid)
+ continue;
+
+ info = pmt_tss_db_lookup(&ctx->tss, devs[i]->guid);
+ if (!info || !info->num_metrics)
+ continue;
+
+ if (listed)
+ putchar('\n');
+ listed = true;
+
+ print_guid_group_line(info->guid, info, cols);
+ print_separator(info);
+
+ for (size_t j = 0; j < info->num_metrics; j++) {
+ const struct pmt_metric_def *m = &info->metrics[j];
+
+ print_chars(' ', LIST_BASE_INDENT);
+ printf("%s\n", m->name);
+ if (m->description)
+ print_description(m->description, LIST_METRIC_DESC_INDENT, cols);
+ }
+ }
+
+ return listed;
+}
+
+int cmd_list(int argc, char **argv, const struct pmt_global_opts *gopts)
+{
+ struct pmtctl_ctx ctx auto_pmtctl_ctx = {};
+ const struct pmt_device **devs auto_free = NULL;
+ struct list_opts opts = {};
+ size_t num_devs;
+ int ret;
+
+ ret = parse_list_opts(&opts, argc, argv);
+ if (ret) {
+ list_usage(stderr);
+ return PMTCTL_EXIT_USER;
+ }
+
+ if (opts.show_help) {
+ list_usage(stdout);
+ return PMTCTL_EXIT_OK;
+ }
+
+ ret = pmtctl_ctx_init(&ctx);
+ if (ret)
+ return PMTCTL_EXIT_SYSTEM;
+
+ ret = pmtctl_ctx_load_tss(&ctx, gopts->json_path);
+ if (ret)
+ return PMTCTL_EXIT_SYSTEM;
+
+ ret = pmtctl_select_devices(&ctx, &opts.filter, &devs, &num_devs);
+ if (ret) {
+ log_ret(ret, "unable to select devices");
+ return PMTCTL_EXIT_SYSTEM;
+ }
+
+ if (!num_devs) {
+ log_err("no PMT telemetry device matches the filter");
+ return PMTCTL_EXIT_USER;
+ }
+
+ if (!ctx.tss.num_tss_info) {
+ if (gopts->json_path)
+ log_err("no metric definitions in %s", gopts->json_path);
+ else
+ log_err("no metric definitions; use -J or install them in %s",
+ PMTCTL_DEFS_DIR);
+ return PMTCTL_EXIT_USER;
+ }
+
+ if (!do_list_metrics(&ctx, devs, num_devs)) {
+ log_err("no metric definitions for the selected devices");
+ return PMTCTL_EXIT_USER;
+ }
+
+ return PMTCTL_EXIT_OK;
+}
diff --git a/tools/arch/x86/pmtctl/src/main.c b/tools/arch/x86/pmtctl/src/main.c
index 25aedef59cf5..d4a7ae464cb8 100644
--- a/tools/arch/x86/pmtctl/src/main.c
+++ b/tools/arch/x86/pmtctl/src/main.c
@@ -7,6 +7,7 @@
#include <string.h>
#include "lib/log.h"
+#include "lib/pmtctl.h"
#include "pmtctl_cli.h"
#define PMTCTL_VERSION "2026.11.22"
@@ -22,6 +23,12 @@ static void print_usage(FILE *out)
" -h, --help Show this help and exit\n"
" -V, --version Show version and exit\n"
"\n"
+ " -J, --json-file <path> Metrics JSON file or directory\n"
+ " If omitted, " PMTCTL_DEFS_DIR " is used if it exists.\n"
+ "\n"
+ "Commands:\n"
+ " list List available PMT metrics\n"
+ "\n"
"Run 'pmtctl <command> --help' for command-specific options.\n");
}
@@ -30,13 +37,15 @@ int main(int argc, char **argv)
static const struct option long_opts[] = {
{ "help", no_argument, NULL, 'h' },
{ "version", no_argument, NULL, 'V' },
+ { "json-file", required_argument, NULL, 'J' },
{}
};
+ struct pmt_global_opts gopts = {};
const char *cmd;
int opt;
/* '+' stops at the first non-option: the command name */
- while ((opt = getopt_long(argc, argv, "+hV", long_opts, NULL)) != -1) {
+ while ((opt = getopt_long(argc, argv, "+hVJ:", long_opts, NULL)) != -1) {
switch (opt) {
case 'h':
print_usage(stdout);
@@ -45,6 +54,9 @@ int main(int argc, char **argv)
printf("pmtctl version %s - David E. Box <david.e.box@linux.intel.com>\n",
PMTCTL_VERSION);
return PMTCTL_EXIT_OK;
+ case 'J':
+ gopts.json_path = optarg;
+ break;
default:
/* getopt_long() already printed an error */
fprintf(stderr, "Try 'pmtctl --help' for usage.\n");
@@ -60,6 +72,9 @@ int main(int argc, char **argv)
cmd = argv[optind];
+ if (!strcmp(cmd, "list"))
+ return cmd_list(argc - optind, argv + optind, &gopts);
+
if (!strcmp(cmd, "help")) {
print_usage(stdout);
return PMTCTL_EXIT_OK;
--
2.53.0
next prev parent reply other threads:[~2026-11-22 19:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 19:33 [PATCH v2 00/12] tools/arch/x86/pmtctl: Add Intel PMT command-line tool David E. Box
2026-11-22 19:33 ` [PATCH v2 01/12] tools/arch/x86/pmtctl: Add pmtctl skeleton David E. Box
2026-11-22 19:33 ` [PATCH v2 02/12] tools/arch/x86/pmtctl: Add PMT telemetry device discovery David E. Box
2026-11-22 19:33 ` [PATCH v2 03/12] tools/arch/x86/pmtctl: Add pmtxml2json conversion tool David E. Box
2026-11-22 19:33 ` [PATCH v2 04/12] tools/arch/x86/pmtctl: Add JSON metric definition loading David E. Box
2026-11-22 19:34 ` David E. Box [this message]
2026-11-22 19:34 ` [PATCH v2 06/12] tools/arch/x86/pmtctl: Add 'list --summary' David E. Box
2026-11-22 19:34 ` [PATCH v2 07/12] tools/arch/x86/pmtctl: Add 'stat' command David E. Box
2026-11-22 19:34 ` [PATCH v2 08/12] tools/arch/x86/pmtctl: Add 'stat --hex' David E. Box
2026-11-22 19:34 ` [PATCH v2 09/12] tools/arch/x86/pmtctl: Add 'stat --raw' David E. Box
2026-11-22 19:34 ` [PATCH v2 10/12] tools/arch/x86/pmtctl: Add README David E. Box
2026-11-22 19:34 ` [PATCH v2 11/12] tools/arch/x86/pmtctl: Add man page David E. Box
2026-11-22 19:34 ` [PATCH v2 12/12] tools/arch/x86/pmtctl: Add MAINTAINERS entry David E. Box
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=770cd5933dd8288d95dfabf9342877c8860c8624.1795374925.git.david.e.box@linux.intel.com \
--to=david.e.box@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®