[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211231063044.2405691-1-liwei391@huawei.com>
Date: Fri, 31 Dec 2021 14:30:42 +0800
From: Wei Li <liwei391@...wei.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>
CC: <linux-perf-users@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<rui.xiang@...wei.com>
Subject: [PATCH 0/2] perf tools: Fix mis-matching of perf sub-commands
We support short command 'rec*' for 'record' and 'rep*' for 'report' in
lots of sub-commands, but the matching is not quite strict currnetly.
It may be puzzling sometime, like we mis-type a 'recport' to report but
it will perform 'record' in fact without any message. So fix the
mis-matching.
Wei Li (2):
perf string: Add strcmp_prefix()
perf tools: Enhance the matching of sub-commands
tools/perf/builtin-c2c.c | 5 +++--
tools/perf/builtin-kmem.c | 2 +-
tools/perf/builtin-kvm.c | 9 +++++----
tools/perf/builtin-lock.c | 5 +++--
tools/perf/builtin-mem.c | 5 +++--
tools/perf/builtin-sched.c | 4 ++--
tools/perf/builtin-script.c | 6 ++++--
tools/perf/builtin-stat.c | 4 ++--
tools/perf/builtin-timechart.c | 3 ++-
tools/perf/util/string.c | 17 +++++++++++++++++
tools/perf/util/string2.h | 1 +
11 files changed, 43 insertions(+), 18 deletions(-)
--
2.25.1
Powered by blists - more mailing lists