Skip to content

Commit

Permalink
translators: procfs.d: rename projid_t
Browse files Browse the repository at this point in the history
The Linux kernel already has a type named projid_t, with a definition
that conflicts with that in use (for an unused field) by this
translator.  libctf correctly diagnoses this as a conflict (where
libdtrace-ctf didn't): rename the type in the translator.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
  • Loading branch information
nickalcock committed Apr 12, 2021
1 parent fcfefee commit f25f5ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libdtrace/procfs.d.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct lwpsinfo {
} lwpsinfo_t;

typedef id_t taskid_t;
typedef id_t projid_t;
typedef id_t dprojid_t;
typedef id_t poolid_t;
typedef id_t zoneid_t;

Expand Down Expand Up @@ -94,7 +94,7 @@ typedef struct psinfo {
char pr_dmodel; /* data model */
char pr_pad2[3];
taskid_t pr_taskid; /* task id */
projid_t pr_projid; /* project id */
dprojid_t pr_projid; /* project id */
int pr_nzomb; /* number of zombie lwps (Linux: 0) */
poolid_t pr_poolid; /* pool id */
zoneid_t pr_zoneid; /* zone id */
Expand Down

0 comments on commit f25f5ef

Please sign in to comment.