mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 01:05:29 +00:00
55c41f2e4f
Commands such as kmem, kwork, lock, sched, trace and timechart depend on
libtraceevent, these commands need to be isolated using HAVE_LIBTRACEEVENT
macro when cmdlist generation.
The output of the generate-cmdlist.sh script is as follows:
# ./util/generate-cmdlist.sh
/* Automatically generated by ./util/generate-cmdlist.sh */
struct cmdname_help
{
char name[16];
char help[80];
};
static struct cmdname_help common_cmds[] = {
{"annotate", "Read perf.data (created by perf record) and display annotated code"},
{"archive", "Create archive with object files with build-ids found in perf.data file"},
{"bench", "General framework for benchmark suites"},
{"buildid-cache", "Manage build-id cache."},
{"buildid-list", "List the buildids in a perf.data file"},
{"c2c", "Shared Data C2C/HITM Analyzer."},
{"config", "Get and set variables in a configuration file."},
{"daemon", "Run record sessions on background"},
{"data", "Data file related processing"},
{"diff", "Read perf.data files and display the differential profile"},
{"evlist", "List the event names in a perf.data file"},
{"ftrace", "simple wrapper for kernel's ftrace functionality"},
{"inject", "Filter to augment the events stream with additional information"},
{"iostat", "Show I/O performance metrics"},
{"kallsyms", "Searches running kernel for symbols"},
{"kvm", "Tool to trace/measure kvm guest os"},
{"list", "List all symbolic event types"},
{"mem", "Profile memory accesses"},
{"record", "Run a command and record its profile into perf.data"},
{"report", "Read perf.data (created by perf record) and display the profile"},
{"script", "Read perf.data (created by perf record) and display trace output"},
{"stat", "Run a command and gather performance counter statistics"},
{"test", "Runs sanity tests."},
{"top", "System profiling tool."},
{"version", "display the version of perf binary"},
#ifdef HAVE_LIBELF_SUPPORT
{"probe", "Define new dynamic tracepoints"},
#endif /* HAVE_LIBELF_SUPPORT */
#if defined(HAVE_LIBTRACEEVENT) && (defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE_SUPPORT))
{"trace", "strace inspired tool"},
#endif /* HAVE_LIBTRACEEVENT && (HAVE_LIBAUDIT_SUPPORT || HAVE_SYSCALL_TABLE_SUPPORT) */
#ifdef HAVE_LIBTRACEEVENT
{"kmem", "Tool to trace/measure kernel memory properties"},
{"kwork", "Tool to trace/measure kernel work properties (latencies)"},
{"lock", "Analyze lock events"},
{"sched", "Tool to trace/measure scheduler properties (latencies)"},
{"timechart", "Tool to visualize total system behavior during a workload"},
#endif /* HAVE_LIBTRACEEVENT */
};
Fixes: 378ef0f5d9
("perf build: Use libtraceevent from the system")
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221226085703.95081-1-yangjihong1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
#
|
|
# List of known perf commands.
|
|
# command name category [deprecated] [common]
|
|
#
|
|
perf-annotate mainporcelain common
|
|
perf-archive mainporcelain common
|
|
perf-bench mainporcelain common
|
|
perf-buildid-cache mainporcelain common
|
|
perf-buildid-list mainporcelain common
|
|
perf-data mainporcelain common
|
|
perf-diff mainporcelain common
|
|
perf-c2c mainporcelain common
|
|
perf-config mainporcelain common
|
|
perf-evlist mainporcelain common
|
|
perf-ftrace mainporcelain common
|
|
perf-inject mainporcelain common
|
|
perf-iostat mainporcelain common
|
|
perf-kallsyms mainporcelain common
|
|
perf-kmem mainporcelain traceevent
|
|
perf-kvm mainporcelain common
|
|
perf-kwork mainporcelain traceevent
|
|
perf-list mainporcelain common
|
|
perf-lock mainporcelain traceevent
|
|
perf-mem mainporcelain common
|
|
perf-probe mainporcelain full
|
|
perf-record mainporcelain common
|
|
perf-report mainporcelain common
|
|
perf-sched mainporcelain traceevent
|
|
perf-script mainporcelain common
|
|
perf-stat mainporcelain common
|
|
perf-test mainporcelain common
|
|
perf-timechart mainporcelain traceevent
|
|
perf-top mainporcelain common
|
|
perf-trace mainporcelain audit
|
|
perf-version mainporcelain common
|
|
perf-daemon mainporcelain common
|