Detach a process from the profiler
#include <sys/dcmd_prof.h> #define DCMD_PROF_DETACH __DIOT(_DCMD_MISC, PROF_DETACH, NULL)
| Argument | Value |
|---|---|
| filedes | A file descriptor for the profiler that you obtained by opening /dev/profiler. |
| dcmd | DCMD_PROF_DETACH |
| dev_data_ptr | A pointer to a struct __prof_clientinfo (see below) |
| n_bytes | sizeof(struct __prof_clientinfo) |
| dev_info_ptr | NULL |
This command detaches the calling process from the profiler.
#define DCMD_PROF_DETACH __DIOT(_DCMD_MISC, PROF_DETACH, NULL)
you should use it like this:
struct __prof_clientinfo clocal; memset (clocal, 0, sizeof (clocal)); devctl(prof_fd, DCMD_PROF_DETACH, &clocal, sizeof clocal, 0);
or else the command fails (even though it doesn't actually use the data).
None.
None.
devctl() in the QNX Neutrino C Library Reference