Coverage Report

Created: 2024-02-25 06:14

/src/libbpf/include/linux/ring_buffer.h
Line
Count
Source (jump to first uncovered line)
1
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2
#ifndef _TOOLS_LINUX_RING_BUFFER_H_
3
#define _TOOLS_LINUX_RING_BUFFER_H_
4
5
#include <linux/compiler.h>
6
7
static inline __u64 ring_buffer_read_head(struct perf_event_mmap_page *base)
8
0
{
9
0
  return smp_load_acquire(&base->data_head);
10
0
}
11
12
static inline void ring_buffer_write_tail(struct perf_event_mmap_page *base,
13
            __u64 tail)
14
0
{
15
0
  smp_store_release(&base->data_tail, tail);
16
0
}
17
18
#endif /* _TOOLS_LINUX_RING_BUFFER_H_ */