Skip to content

Commit

Permalink
Fix some minor attach stat issue
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaro Hayakawa <yhayakawa3720@gmail.com>
  • Loading branch information
YutaroHayakawa committed May 30, 2022
1 parent 8a9e7f1 commit ccbc00d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ attach_kprobe_multi(struct ipft_tracer *t)

fprintf(
stderr,
"\rAttaching program (total %zu, succeeded %zu, failed %zu filtered: "
"\rAttaching program (total %zu, succeeded %zu, failed %zu, filtered: "
"%zu)",
attach_stat.total, attach_stat.succeeded, attach_stat.failed,
attach_stat.filtered);
Expand Down Expand Up @@ -403,7 +403,7 @@ attach_ftrace(struct ipft_tracer *t)
out:
fprintf(
stderr,
"\rAttaching program (total %zu, succeeded %zu, failed %zu filtered: "
"\rAttaching program (total %zu, succeeded %zu, failed %zu, filtered: "
"%zu)",
attach_stat.total, attach_stat.succeeded, attach_stat.failed,
attach_stat.filtered);
Expand All @@ -421,6 +421,9 @@ attach_all(struct ipft_tracer *t)

attach_stat.total = symsdb_get_sym2info_total(t->sdb);

fprintf(stderr, "Attaching program (total %zu, succeeded 0, failed 0, filtered: 0)",
attach_stat.total);

switch (t->opt->backend) {
case IPFT_BACKEND_KPROBE:
error = attach_kprobe(t);
Expand Down

0 comments on commit ccbc00d

Please sign in to comment.