Skip to content

Commit

Permalink
Merge pull request #2033 from natoscott/proc-local-context
Browse files Browse the repository at this point in the history
libpcp: auto-load the proc PMDA in local context mode
  • Loading branch information
kmcdonell authored Jul 30, 2024
2 parents e86549b + c8cd256 commit 5eb035e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/libpcp/src/connectlocal.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ build_dsotab(void)
*/
goto eatline;
}
if (strncmp(p, "proc", 4) == 0) {
/*
* the proc PMDA is an exception now too ... we run it as root
* (daemon) but we still want to make the DSO available for any
* local context users. We add this explicitly below.
*/
domain = 3;
init = "proc_init";
pmsprintf(pathbuf, sizeof(pathbuf), "%s/proc/pmda_proc.so", pmdas);
name = pathbuf;
peekc = *p;
goto dsoload;
}
if (strncmp(p, "linux", 5) == 0) {
/*
* the Linux PMDA is an exception now too ... we run it as root
Expand Down

0 comments on commit 5eb035e

Please sign in to comment.