X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=bafe1a94d5a56ac5e7b57f179f75aadbfd520201;hb=909bc43f70be2b1d3efcefe33121ee1e99d9895b;hp=57218a6bd62765b217a27338104b1cbb88a21061;hpb=02c8b050c0fbb61aa8625ecaf8776e642449c838;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 57218a6..bafe1a9 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -17,6 +17,7 @@ #define _GNU_SOURCE #include +#include #include #include #include @@ -26,6 +27,7 @@ #include #include #include +#include #include #include @@ -684,7 +686,7 @@ static int do_cmd_get_subbuffer(const char *recvbuf, struct ustcomm_source *src) /* Being here is the proof the daemon has mapped the buffer in its * memory. We may now decrement buffers_to_export. */ - if(atomic_long_read(&buf->consumed) == 0) { + if(uatomic_read(&buf->consumed) == 0) { DBG("decrementing buffers_to_export"); buffers_to_export--; }