A.1. Overview of RTA

The RTA package addresses the challenges described above by giving real-time access to the data structures and arrays inside a running program. With minimal effort, we can use RTA to make a program's data structures appear as PostgreSQL tables in a PostgreSQL database.

Using RTA, a structure definition is also the definition for a table row, and an array of structures will appear as a table. For example, the code below shows a definition of a data structure for TCP connection information.

 struct tcpconn { int fd; // conn's file descriptor int lport; // local port number int dport; // destination port number long nsbytes; // number of sent bytes long nrbytes; // number of received bytes long nread; // number of reads on the ...

Get Linux Appliance Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.