library: rename/reposition two enumerators, <pids> api

The two special hugetlbfs items were misnamed. The TBL
reference (table) should be TLB (transaction lookaside
buffer). Besides, I never liked their position anyway!

[ and one macro argument tweak is being snuck in too ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2021-04-30 00:00:00 -05:00
committed by Craig Small
parent 9bdc1ca295
commit bf0b3b6522
3 changed files with 7 additions and 7 deletions

View File

@@ -659,7 +659,7 @@ static void smaps2proc (const char* s, proc_t *restrict P) {
// a smaptab entry generator
#define mkENT(F) { #F ":", -1, (int)((void*)&q->smap_ ## F - (void*)&q->fZERO) }
// make a target field
#define mkOBJ(e) ( (unsigned long *)((void *)&P->fZERO + smaptab[e].offs) )
#define mkOBJ(X) ( (unsigned long *)((void *)&P->fZERO + smaptab[X].offs) )
static const proc_t *q;
static struct {
const char *item;