Merge tag 'perf-core-for-mingo-3' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo: User visible changes: - Improve --filter support for 'perf probe', allowing using its arguments on other commands, as --add, --del, etc (Masami Hiramatsu) - Show warning when running 'perf kmem stat' on a unsuitable perf.data file, i.e. one with events that are not the ones required for the stat variant used (Namhyung Kim). Infrastructure changes: - Auxtrace support patches, paving the way to support Intel PT and BTS (Adrian Hunter) - hists browser (top, report) refactorings (Namhyung Kim) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@ -1387,7 +1387,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f
|
||||
do_warning_event(event, "%s: no type found", __func__);
|
||||
goto fail;
|
||||
}
|
||||
field->name = last_token;
|
||||
field->name = field->alias = last_token;
|
||||
|
||||
if (test_type(type, EVENT_OP))
|
||||
goto fail;
|
||||
@ -1469,7 +1469,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f
|
||||
size_dynamic = type_size(field->name);
|
||||
free_token(field->name);
|
||||
strcat(field->type, brackets);
|
||||
field->name = token;
|
||||
field->name = field->alias = token;
|
||||
type = read_token(&token);
|
||||
} else {
|
||||
char *new_type;
|
||||
@ -6444,6 +6444,8 @@ void pevent_ref(struct pevent *pevent)
|
||||
void pevent_free_format_field(struct format_field *field)
|
||||
{
|
||||
free(field->type);
|
||||
if (field->alias != field->name)
|
||||
free(field->alias);
|
||||
free(field->name);
|
||||
free(field);
|
||||
}
|
||||
|
@ -191,6 +191,7 @@ struct format_field {
|
||||
struct event_format *event;
|
||||
char *type;
|
||||
char *name;
|
||||
char *alias;
|
||||
int offset;
|
||||
int size;
|
||||
unsigned int arraylen;
|
||||
|
Reference in New Issue
Block a user