diff options
Diffstat (limited to 'tools/perf/util/parse-events.c')
| -rw-r--r-- | tools/perf/util/parse-events.c | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index e48d9da75707..4f7b0efdde2f 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -4,9 +4,9 @@  #include "../perf.h"  #include "evlist.h"  #include "evsel.h" -#include "parse-options.h" +#include <subcmd/parse-options.h>  #include "parse-events.h" -#include "exec_cmd.h" +#include <subcmd/exec-cmd.h>  #include "string.h"  #include "symbol.h"  #include "cache.h" @@ -124,6 +124,10 @@ struct event_symbol event_symbols_sw[PERF_COUNT_SW_MAX] = {  		.symbol = "dummy",  		.alias  = "",  	}, +	[PERF_COUNT_SW_BPF_OUTPUT] = { +		.symbol = "bpf-output", +		.alias  = "", +	},  };  #define __PERF_EVENT_FIELD(config, name) \ @@ -1879,7 +1883,7 @@ restart:  	for (i = 0; i < max; i++, syms++) { -		if (event_glob != NULL && +		if (event_glob != NULL && syms->symbol != NULL &&  		    !(strglobmatch(syms->symbol, event_glob) ||  		      (syms->alias && strglobmatch(syms->alias, event_glob))))  			continue; | 
