[CTRACER]: Return 0 on the cu iterators
This way we process not just the first object file in a multi-object file such as vmlinux. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
a5147a7785
commit
5d1d846e62
|
@ -99,6 +99,8 @@ static int cu_emit_kprobes_iterator(struct cu *cu, void *cookie)
|
|||
|
||||
list_for_each_entry(pos, &cu->tool_list, tool_node)
|
||||
function__emit_kprobes(pos, target);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cu_emit_kprobes_table_iterator(struct cu *cu, void *cookie)
|
||||
|
@ -109,6 +111,8 @@ static int cu_emit_kprobes_table_iterator(struct cu *cu, void *cookie)
|
|||
list_for_each_entry(pos, &cu->tool_list, tool_node)
|
||||
printf("\t&jprobe__%s,\n", pos->name);
|
||||
puts("\tNULL,\n};\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void emit_module_preamble(void)
|
||||
|
|
Loading…
Reference in New Issue