projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
runtests: assert the test logs contain no errors or warnings
[ust.git]
/
ustd
/
lowlevel.c
diff --git
a/ustd/lowlevel.c
b/ustd/lowlevel.c
index 4c179c5cbe1317b71b6724f276fcd920cdee4ac8..5c145fa3f9e9ffae7cb947ef9ab76643eada4290 100644
(file)
--- a/
ustd/lowlevel.c
+++ b/
ustd/lowlevel.c
@@
-15,6
+15,7
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdlib.h>
#include <assert.h>
#include <byteswap.h>
#include <assert.h>
#include <byteswap.h>
@@
-65,8
+66,8
@@
void finish_consuming_dead_subbuffer(struct buffer_info *buf)
{
struct ust_buffer *ustbuf = buf->bufstruct_mem;
{
struct ust_buffer *ustbuf = buf->bufstruct_mem;
- long write_offset =
local
_read(&ustbuf->offset);
- long consumed_offset =
atomic_long
_read(&ustbuf->consumed);
+ long write_offset =
uatomic
_read(&ustbuf->offset);
+ long consumed_offset =
uatomic
_read(&ustbuf->consumed);
long i_subbuf;
long i_subbuf;
@@
-95,7
+96,7
@@
void finish_consuming_dead_subbuffer(struct buffer_info *buf)
void *tmp;
/* commit_seq is the offset in the buffer of the end of the last sequential commit.
* Bytes beyond this limit cannot be recovered. This is a free-running counter. */
void *tmp;
/* commit_seq is the offset in the buffer of the end of the last sequential commit.
* Bytes beyond this limit cannot be recovered. This is a free-running counter. */
- long commit_seq =
local
_read(&ustbuf->commit_seq[i_subbuf]);
+ long commit_seq =
uatomic
_read(&ustbuf->commit_seq[i_subbuf]);
unsigned long valid_length = buf->subbuf_size;
long n_subbufs_order = get_count_order(buf->n_subbufs);
unsigned long valid_length = buf->subbuf_size;
long n_subbufs_order = get_count_order(buf->n_subbufs);
This page took
0.02422 seconds
and
4
git commands to generate.