diff options
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 0e17db41b49b..09604c6508f0 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -1173,7 +1173,7 @@ static int python_export_call_return(struct db_export *dbe, | |||
1173 | u64 comm_db_id = cr->comm ? cr->comm->db_id : 0; | 1173 | u64 comm_db_id = cr->comm ? cr->comm->db_id : 0; |
1174 | PyObject *t; | 1174 | PyObject *t; |
1175 | 1175 | ||
1176 | t = tuple_new(11); | 1176 | t = tuple_new(12); |
1177 | 1177 | ||
1178 | tuple_set_u64(t, 0, cr->db_id); | 1178 | tuple_set_u64(t, 0, cr->db_id); |
1179 | tuple_set_u64(t, 1, cr->thread->db_id); | 1179 | tuple_set_u64(t, 1, cr->thread->db_id); |
@@ -1186,6 +1186,7 @@ static int python_export_call_return(struct db_export *dbe, | |||
1186 | tuple_set_u64(t, 8, cr->return_ref); | 1186 | tuple_set_u64(t, 8, cr->return_ref); |
1187 | tuple_set_u64(t, 9, cr->cp->parent->db_id); | 1187 | tuple_set_u64(t, 9, cr->cp->parent->db_id); |
1188 | tuple_set_s32(t, 10, cr->flags); | 1188 | tuple_set_s32(t, 10, cr->flags); |
1189 | tuple_set_u64(t, 11, cr->parent_db_id); | ||
1189 | 1190 | ||
1190 | call_object(tables->call_return_handler, t, "call_return_table"); | 1191 | call_object(tables->call_return_handler, t, "call_return_table"); |
1191 | 1192 | ||
@@ -1194,11 +1195,12 @@ static int python_export_call_return(struct db_export *dbe, | |||
1194 | return 0; | 1195 | return 0; |
1195 | } | 1196 | } |
1196 | 1197 | ||
1197 | static int python_process_call_return(struct call_return *cr, void *data) | 1198 | static int python_process_call_return(struct call_return *cr, u64 *parent_db_id, |
1199 | void *data) | ||
1198 | { | 1200 | { |
1199 | struct db_export *dbe = data; | 1201 | struct db_export *dbe = data; |
1200 | 1202 | ||
1201 | return db_export__call_return(dbe, cr); | 1203 | return db_export__call_return(dbe, cr, parent_db_id); |
1202 | } | 1204 | } |
1203 | 1205 | ||
1204 | static void python_process_general_event(struct perf_sample *sample, | 1206 | static void python_process_general_event(struct perf_sample *sample, |