diff options
| author | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
| commit | 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e (patch) | |
| tree | d57f3a63479a07b4e0cece029886e76e04feb984 /tools/perf/builtin-list.c | |
| parent | 5dc63e56a9cf8df0b59c234a505a1653f1bdf885 (diff) | |
| parent | 53bea86b5712c7491bb3dae12e271666df0a308c (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.4 merge window.
Diffstat (limited to 'tools/perf/builtin-list.c')
| -rw-r--r-- | tools/perf/builtin-list.c | 20 | 
1 files changed, 2 insertions, 18 deletions
diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index 137d73edb541..791f513ae5b4 100644 --- a/tools/perf/builtin-list.c +++ b/tools/perf/builtin-list.c @@ -99,8 +99,7 @@ static void default_print_event(void *ps, const char *pmu_name, const char *topi  				const char *scale_unit __maybe_unused,  				bool deprecated, const char *event_type_desc,  				const char *desc, const char *long_desc, -				const char *encoding_desc, -				const char *metric_name, const char *metric_expr) +				const char *encoding_desc)  {  	struct print_state *print_state = ps;  	int pos; @@ -159,10 +158,6 @@ static void default_print_event(void *ps, const char *pmu_name, const char *topi  	if (print_state->detailed && encoding_desc) {  		printf("%*s", 8, "");  		wordwrap(encoding_desc, 8, pager_get_columns(), 0); -		if (metric_name) -			printf(" MetricName: %s", metric_name); -		if (metric_expr) -			printf(" MetricExpr: %s", metric_expr);  		putchar('\n');  	}  } @@ -308,8 +303,7 @@ static void json_print_event(void *ps, const char *pmu_name, const char *topic,  			     const char *scale_unit,  			     bool deprecated, const char *event_type_desc,  			     const char *desc, const char *long_desc, -			     const char *encoding_desc, -			     const char *metric_name, const char *metric_expr) +			     const char *encoding_desc)  {  	struct json_print_state *print_state = ps;  	bool need_sep = false; @@ -366,16 +360,6 @@ static void json_print_event(void *ps, const char *pmu_name, const char *topic,  				  encoding_desc);  		need_sep = true;  	} -	if (metric_name) { -		fix_escape_printf(&buf, "%s\t\"MetricName\": \"%S\"", need_sep ? ",\n" : "", -				  metric_name); -		need_sep = true; -	} -	if (metric_expr) { -		fix_escape_printf(&buf, "%s\t\"MetricExpr\": \"%S\"", need_sep ? ",\n" : "", -				  metric_expr); -		need_sep = true; -	}  	printf("%s}", need_sep ? "\n" : "");  	strbuf_release(&buf);  }  |