Skip to content

Commit

Permalink
examples/kdigest: print whether bundled sends were used
Browse files Browse the repository at this point in the history
Bundling only occurs with IORING_FEAT_RECVSEND_BUNDLE kernel support, so
make it a little easier to find out whether it was used.

Signed-off-by: David Disseldorp <ddiss@suse.de>
  • Loading branch information
ddiss committed Oct 3, 2024
1 parent 68b45a4 commit 33de51d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/kdigest.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ static int get_result(struct kdigest *kdigest, const char *alg, const char *file
goto err;
}

fprintf(stdout, "uring %s(%s) returned(len=%u): ", alg, file, cqe->res);
fprintf(stdout, "uring %s%s(%s) returned(len=%u): ",
kdigest->br ? "bundled " : "", alg, file, cqe->res);
for (i = 0; i < cqe->res; i++)
fprintf(stdout, "%02x", kdigest->bufs[i]);
putc('\n', stdout);
Expand Down

0 comments on commit 33de51d

Please sign in to comment.