logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

trace_mmap.h (1301B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _TRACE_MMAP_H_
  3. #define _TRACE_MMAP_H_
  4. #include <linux/types.h>
  5. /**
  6. * struct trace_buffer_meta - Ring-buffer Meta-page description
  7. * @meta_page_size: Size of this meta-page.
  8. * @meta_struct_len: Size of this structure.
  9. * @subbuf_size: Size of each sub-buffer.
  10. * @nr_subbufs: Number of subbfs in the ring-buffer, including the reader.
  11. * @reader.lost_events: Number of events lost at the time of the reader swap.
  12. * @reader.id: subbuf ID of the current reader. ID range [0 : @nr_subbufs - 1]
  13. * @reader.read: Number of bytes read on the reader subbuf.
  14. * @flags: Placeholder for now, 0 until new features are supported.
  15. * @entries: Number of entries in the ring-buffer.
  16. * @overrun: Number of entries lost in the ring-buffer.
  17. * @read: Number of entries that have been read.
  18. * @Reserved1: Internal use only.
  19. * @Reserved2: Internal use only.
  20. */
  21. struct trace_buffer_meta {
  22. __u32 meta_page_size;
  23. __u32 meta_struct_len;
  24. __u32 subbuf_size;
  25. __u32 nr_subbufs;
  26. struct {
  27. __u64 lost_events;
  28. __u32 id;
  29. __u32 read;
  30. } reader;
  31. __u64 flags;
  32. __u64 entries;
  33. __u64 overrun;
  34. __u64 read;
  35. __u64 Reserved1;
  36. __u64 Reserved2;
  37. };
  38. #define TRACE_MMAP_IOCTL_GET_READER _IO('R', 0x20)
  39. #endif /* _TRACE_MMAP_H_ */