public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND 0/2] perf tools: Fix mis-matching of perf sub-commands
@ 2022-03-18  9:22 Wei Li
  2022-03-18  9:22 ` [PATCH RESEND 1/2] perf string: Add strcmp_prefix() Wei Li
  2022-03-18  9:22 ` [PATCH RESEND 2/2] perf tools: Enhance the matching of sub-commands Wei Li
  0 siblings, 2 replies; 5+ messages in thread
From: Wei Li @ 2022-03-18  9:22 UTC (permalink / raw)
  To: acme, mark.rutland, alexander.shishkin, jolsa, namhyung
  Cc: linux-perf-users, linux-kernel, rui.xiang, guohanjun

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-25  2:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-18  9:22 [PATCH RESEND 0/2] perf tools: Fix mis-matching of perf sub-commands Wei Li
2022-03-18  9:22 ` [PATCH RESEND 1/2] perf string: Add strcmp_prefix() Wei Li
2022-03-22 21:22   ` Arnaldo Carvalho de Melo
2022-03-25  2:06     ` liwei (GF)
2022-03-18  9:22 ` [PATCH RESEND 2/2] perf tools: Enhance the matching of sub-commands Wei Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox