Skip to content

Commit

Permalink
libbpf-tools/futexctn: Hint program is running
Browse files Browse the repository at this point in the history
The program should be prompted to start running:

    $ sudo ./futexctn
    Summarize futex contention latency, hit ctrl-c to exit

Signed-off-by: Rong Tao <[email protected]>
  • Loading branch information
Rtoax authored and yonghong-song committed Aug 4, 2024
1 parent 052022b commit 7988a53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libbpf-tools/futexctn.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ int main(int argc, char **argv)

signal(SIGINT, sig_handler);

fprintf(stderr, "Summarize futex contention latency, hit ctrl-c to exit\n");

/* main: poll */
while (1) {
sleep(env.interval);
Expand Down

0 comments on commit 7988a53

Please sign in to comment.