mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 01:54:00 +00:00
Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf tooling fixes from Arnaldo Carvalho de Melo. Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
commit
529b3ca832
@ -1138,6 +1138,14 @@ static int trace__symbols_init(struct trace *trace, struct perf_evlist *evlist)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void trace__symbols__exit(struct trace *trace)
|
||||||
|
{
|
||||||
|
machine__exit(trace->host);
|
||||||
|
trace->host = NULL;
|
||||||
|
|
||||||
|
symbol__exit();
|
||||||
|
}
|
||||||
|
|
||||||
static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args)
|
static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args)
|
||||||
{
|
{
|
||||||
int idx;
|
int idx;
|
||||||
@ -2481,6 +2489,8 @@ out_disable:
|
|||||||
}
|
}
|
||||||
|
|
||||||
out_delete_evlist:
|
out_delete_evlist:
|
||||||
|
trace__symbols__exit(trace);
|
||||||
|
|
||||||
perf_evlist__delete(evlist);
|
perf_evlist__delete(evlist);
|
||||||
trace->evlist = NULL;
|
trace->evlist = NULL;
|
||||||
trace->live = false;
|
trace->live = false;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
%option stack
|
%option stack
|
||||||
%option bison-locations
|
%option bison-locations
|
||||||
%option yylineno
|
%option yylineno
|
||||||
|
%option reject
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -339,8 +340,8 @@ r{num_raw_hex} { return raw(yyscanner); }
|
|||||||
{num_hex} { return value(yyscanner, 16); }
|
{num_hex} { return value(yyscanner, 16); }
|
||||||
|
|
||||||
{modifier_event} { return str(yyscanner, PE_MODIFIER_EVENT); }
|
{modifier_event} { return str(yyscanner, PE_MODIFIER_EVENT); }
|
||||||
{bpf_object} { if (!isbpf(yyscanner)) USER_REJECT; return str(yyscanner, PE_BPF_OBJECT); }
|
{bpf_object} { if (!isbpf(yyscanner)) { USER_REJECT }; return str(yyscanner, PE_BPF_OBJECT); }
|
||||||
{bpf_source} { if (!isbpf(yyscanner)) USER_REJECT; return str(yyscanner, PE_BPF_SOURCE); }
|
{bpf_source} { if (!isbpf(yyscanner)) { USER_REJECT }; return str(yyscanner, PE_BPF_SOURCE); }
|
||||||
{name} { return pmu_str_check(yyscanner); }
|
{name} { return pmu_str_check(yyscanner); }
|
||||||
"/" { BEGIN(config); return '/'; }
|
"/" { BEGIN(config); return '/'; }
|
||||||
- { return '-'; }
|
- { return '-'; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user