Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c
Show First 20 Lines • Show All 675 Lines • ▼ Show 20 Lines | |||||
anon_prog(const dtrace_cmd_t *dcp, dof_hdr_t *dof, int n) | anon_prog(const dtrace_cmd_t *dcp, dof_hdr_t *dof, int n) | ||||
{ | { | ||||
const uchar_t *p, *q; | const uchar_t *p, *q; | ||||
if (dof == NULL) | if (dof == NULL) | ||||
dfatal("failed to create DOF image for '%s'", dcp->dc_name); | dfatal("failed to create DOF image for '%s'", dcp->dc_name); | ||||
p = (uchar_t *)dof; | p = (uchar_t *)dof; | ||||
q = p + dof->dofh_loadsz; | q = p + dof->dofh_filesz; | ||||
#ifdef __FreeBSD__ | #ifdef __FreeBSD__ | ||||
/* | /* | ||||
* On FreeBSD, the DOF file is read directly during boot - just write | * On FreeBSD, the DOF file is read directly during boot - just write | ||||
* two hex characters per byte. | * two hex characters per byte. | ||||
*/ | */ | ||||
oprintf("dof-data-%d=", n); | oprintf("dof-data-%d=", n); | ||||
▲ Show 20 Lines • Show All 1,320 Lines • Show Last 20 Lines |