X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=libust%2Ftracectl.c;h=25e96450ca70492ad1edfb1a644a759f47f35252;hb=b102c2b0b07a155285716d9f7fd788662cecd54b;hp=57218a6bd62765b217a27338104b1cbb88a21061;hpb=27a4f27938a43507f94ac4ed7576428a21b83498;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 57218a6..25e9645 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -684,7 +685,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--; }