Searched refs:pmcstat_sockpair (Results 1 – 4 of 4) sorted by relevance
/freebsd/lib/libpmcstat/ |
H A D | libpmcstat_process.c | 259 pmcstat_create_process(int *pmcstat_sockpair, struct pmcstat_args *args, in pmcstat_create_process() argument 267 if (socketpair(AF_UNIX, SOCK_STREAM, 0, pmcstat_sockpair) < 0) in pmcstat_create_process() 276 (void) close(pmcstat_sockpair[PARENTSOCKET]); in pmcstat_create_process() 279 if (write(pmcstat_sockpair[CHILDSOCKET], "+", 1) != 1) in pmcstat_create_process() 283 if (read(pmcstat_sockpair[CHILDSOCKET], &token, 1) < 0) in pmcstat_create_process() 285 (void) close(pmcstat_sockpair[CHILDSOCKET]); in pmcstat_create_process() 295 (void) close(pmcstat_sockpair[CHILDSOCKET]); in pmcstat_create_process() 312 if (read(pmcstat_sockpair[PARENTSOCKET], &token, 1) < 0) in pmcstat_create_process() 327 pmcstat_start_process(int *pmcstat_sockpair) in pmcstat_start_process() argument 330 if (write(pmcstat_sockpair[PARENTSOCKET], "!", 1) != 1) in pmcstat_start_process() [all …]
|
H A D | libpmcstat.h | 363 void pmcstat_create_process(int *pmcstat_sockpair, struct pmcstat_args *args, int pmcstat_kq); 364 void pmcstat_start_process(int *pmcstat_sockpair);
|
/freebsd/usr.sbin/pmc/ |
H A D | cmd_pmc_stat.c | 114 static int pmcstat_sockpair[NSOCKPAIRFD]; variable 386 pmcstat_create_process(pmcstat_sockpair, &pmc_args, pmc_kq); in pmc_stat_internal() 398 pmcstat_start_process(pmcstat_sockpair); in pmc_stat_internal()
|
/freebsd/usr.sbin/pmcstat/ |
H A D | pmcstat.c | 112 static int pmcstat_sockpair[NSOCKPAIRFD]; variable 1262 pmcstat_create_process(pmcstat_sockpair, &args, pmcstat_kq); in main() 1286 pmcstat_start_process(pmcstat_sockpair); in main()
|