File: procmap_smaps.gperf

package info (click to toggle)
libgtop2 2.41.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,176 kB
  • sloc: ansic: 25,849; sh: 7,327; makefile: 408; perl: 268; xml: 179; sed: 16
file content (23 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%language=ANSI-C
%includes
%struct-type
%readonly-tables
%pic
%define lookup-function-name _glibtop_find_smap
%compare-lengths
%{
#include "glibtop_private.h"
#include <glibtop/procmap.h>
#include <stddef.h>
#define SMAP_OFFSET(MEMBER) offsetof(glibtop_map_entry, MEMBER)
%}
struct smap_value { int name; ptrdiff_t offset; };
%%
Private_Clean,	SMAP_OFFSET(private_clean)
Private_Dirty,	SMAP_OFFSET(private_dirty)
Pss,		SMAP_OFFSET(pss)
Rss,		SMAP_OFFSET(rss)
Shared_Clean,	SMAP_OFFSET(shared_clean)
Shared_Dirty,	SMAP_OFFSET(shared_dirty)
Size,		SMAP_OFFSET(size)
Swap,		SMAP_OFFSET(swap),