Mechanism for a Reader Page for a Ring Buffer
AssigneeRed Hat, Inc.
InventorSteven D. Rostedt
Life of this patent
Estimating the term…
Abstract
In one embodiment, a mechanism for a reader page for a ring buffer is disclosed. In one embodiment, a method for implementing a reader page for a ring buffer includes allocating, by a processing device, a block of storage separate from a ring buffer as a reader page for a reader of the ring buffer, the ring buffer stored in a physical memory device, and swapping, by the processing device, a head page of the ring buffer with the reader page so that the reader page is part of the ring buffer and the head page is no longer attached to the ring buffer.
Claims20
A computer-implemented method, comprising:
- allocating, by a processing device, a block of storage separate from a ring buffer as a reader page for a reader of the ring buffer, the ring buffer stored in a physical memory device;
- and
- swapping, by the processing device, a head page of the ring buffer with the reader page so that the reader page is part of the ring buffer and the head page is no longer attached to the ring buffer.
A system, comprising:
- a storage device to store a ring buffer;
- one or more device drivers to control the storage device;
- and
- a kernel communicably coupled to the one or more device drivers and the storage device, the kernel including a tracing utility to:
- allocate a block of storage from the storage device separate from the ring buffer as a reader page for a reader of the ring buffer;
- and
- swap a head page of the ring buffer with the reader page so that the reader page is part of the ring buffer and the head page is no longer attached to the ring buffer.
An article of manufacture comprising a machine-readable storage medium including data that, when accessed by a machine, cause the machine to perform operations comprising:
- allocating a block of storage separate from a ring buffer as a reader page for a reader of the ring buffer;
- and
- swapping a head page of the ring buffer with the reader page so that the reader page is part of the ring buffer and the head page is no longer attached to the ring buffer.
Dependencies are inferred from the claim text.