Event-builder helpers (page rounding, page-aligned allocation, thread pinning) and the ImmData packing of the 32-bit RDMA immediate data word.
More...
#include <pthread.h>
#include <cstdint>
#include <string>
#include "rapidjson/document.h"
|
| class | Pds::Eb::ImmData |
| | Static helpers that pack and unpack the 32-bit immediate data word: a 2-bit flags field (bits 31-30), a 6-bit source field (bits 29-24) and a 24-bit index field (bits 23-0). More...
|
| |
|
| namespace | Pds |
| | Outer namespace of the HSD digitizer helpers.
|
| |
| namespace | Pds::Eb |
| | Namespace of the psdaq event-builder (eb) code.
|
| |
|
| #define | _GNU_SOURCE |
| | Defined here, if not already defined, before <pthread.h> is included; pinThread() uses the GNU extension pthread_setaffinity_np().
|
| |
|
| size_t | Pds::Eb::roundUpSize (size_t size) |
| | Return size rounded up to a whole number of system pages (sysconf(_SC_PAGESIZE)).
|
| |
| void * | Pds::Eb::allocRegion (size_t size) |
| | Allocate a page-aligned block of roundUpSize(size) bytes with posix_memalign().
|
| |
| int | Pds::Eb::pinThread (const pthread_t &th, int cpu) |
| | Pin thread th to the single CPU cpu with pthread_setaffinity_np() and return its result.
|
| |
Event-builder helpers (page rounding, page-aligned allocation, thread pinning) and the ImmData packing of the 32-bit RDMA immediate data word.
◆ _GNU_SOURCE
Defined here, if not already defined, before <pthread.h> is included; pinThread() uses the GNU extension pthread_setaffinity_np().