It more shorter, and simpler. Signed-off-by: Azat Khuzhin <a3at.mail@xxxxxxxxx> --- scripts/userspace/gcc_unwind.kp | 2 +- userspace/eventdef.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/userspace/gcc_unwind.kp b/scripts/userspace/gcc_unwind.kp index 3586d62..0890872 100644 --- a/scripts/userspace/gcc_unwind.kp +++ b/scripts/userspace/gcc_unwind.kp @@ -3,7 +3,7 @@ #only tested in x86-64 system, #if you run this script in x86_32, change the libc path. -trace stapsdt:/lib/x86_64-linux-gnu/libgcc_s.so.1:unwind { +trace sdt:/lib/x86_64-linux-gnu/libgcc_s.so.1:unwind { print(execname(), argevent) } diff --git a/userspace/eventdef.c b/userspace/eventdef.c index f62414e..53e858e 100644 --- a/userspace/eventdef.c +++ b/userspace/eventdef.c @@ -438,7 +438,7 @@ static int parse_events_add_probe(char *old_event) return parse_events_add_uprobe(old_event, FIND_SYMBOL); } -static int parse_events_add_stapsdt(char *old_event) +static int parse_events_add_sdt(char *old_event) { return parse_events_add_uprobe(old_event, FIND_STAPSDT_NOTE); } @@ -577,8 +577,8 @@ ktap_string *ktapc_parse_eventdef(ktap_string *eventdef) if (!strcmp(sys, "probe")) ret = parse_events_add_probe(event); - else if (!strcmp(sys, "stapsdt")) - ret = parse_events_add_stapsdt(event); + else if (!strcmp(sys, "sdt")) + ret = parse_events_add_sdt(event); else ret = parse_events_add_tracepoint(sys, event); -- 1.8.4.rc3