perf tools: Propagate error info for the tracepoint parsing
Pass 'struct parse_events_error *error' to the parse-event.c tracepoint adding path. It will be filled with error data in following patches. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Reviewed-by: Raphael Beamonte <raphael.beamonte@gmail.com> Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1441615087-13886-4-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
01ca9fd41d
commit
e2f9f8ea6a
@@ -376,7 +376,7 @@ PE_NAME '-' PE_NAME ':' PE_NAME
|
||||
snprintf(&sys_name, 128, "%s-%s", $1, $3);
|
||||
|
||||
ALLOC_LIST(list);
|
||||
ABORT_ON(parse_events_add_tracepoint(list, &data->idx, &sys_name, $5));
|
||||
ABORT_ON(parse_events_add_tracepoint(list, &data->idx, &sys_name, $5, data->error));
|
||||
$$ = list;
|
||||
}
|
||||
|
|
||||
@@ -386,7 +386,7 @@ PE_NAME ':' PE_NAME
|
||||
struct list_head *list;
|
||||
|
||||
ALLOC_LIST(list);
|
||||
if (parse_events_add_tracepoint(list, &data->idx, $1, $3)) {
|
||||
if (parse_events_add_tracepoint(list, &data->idx, $1, $3, data->error)) {
|
||||
struct parse_events_error *error = data->error;
|
||||
|
||||
if (error) {
|
||||
|
Reference in New Issue
Block a user