diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-11-11 09:45:30 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-11-11 09:45:30 -0800 | 
| commit | eb037f16f7e843722db5f0275d84b3f738d5649d (patch) | |
| tree | 6b016100a8ac4e03ab01b22cc8d8bf1c78ad154d /tools/perf/util/parse-branch-options.c | |
| parent | 991f173cd23cea2b4102cb78f779a7a43c29e76f (diff) | |
| parent | 94d957ae513fc420d0a5a9bac815eb49ffebb56f (diff) | |
Merge tag 'perf-tools-fixes-for-v6.1-2-2022-11-10' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
Pull perf tools fixes from Arnaldo Carvalho de Melo:
 - Fix 'perf stat' crash with --per-node --metric-only in CSV mode, due
   to the AGGR_NODE slot in the 'aggr_header_csv' array not being set.
 - Fix printing prefix in CSV output of 'perf stat' metrics in interval
   mode (-I), where an extra separator was being added to the start of
   some lines.
 - Fix skipping branch stack sampling 'perf test' entry, that was using
   both --branch-any and --branch-filter, which can't be used together.
* tag 'perf-tools-fixes-for-v6.1-2-2022-11-10' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
  perf tools: Add the include/perf/ directory to .gitignore
  perf test: Fix skipping branch stack sampling test
  perf stat: Fix printing os->prefix in CSV metrics output
  perf stat: Fix crash with --per-node --metric-only in CSV mode
Diffstat (limited to 'tools/perf/util/parse-branch-options.c')
| -rw-r--r-- | tools/perf/util/parse-branch-options.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/parse-branch-options.c b/tools/perf/util/parse-branch-options.c index 00588b9db474..31faf2bb49ff 100644 --- a/tools/perf/util/parse-branch-options.c +++ b/tools/perf/util/parse-branch-options.c @@ -102,8 +102,10 @@ parse_branch_stack(const struct option *opt, const char *str, int unset)  	/*  	 * cannot set it twice, -b + --branch-filter for instance  	 */ -	if (*mode) +	if (*mode) { +		pr_err("Error: Can't use --branch-any (-b) with --branch-filter (-j).\n");  		return -1; +	}  	return parse_branch_str(str, mode);  }  | 
