NAME

Devel::DTrace::DOF::Header - a DOF header

SYNOPSIS

my $header = Devel::DTrace::DOF::Header->new();
$header->secnum(scalar @sections);
...
$header->filesz($size);
$header->loadsz($load_size);
$header->dof_version($ver);
my $dof = $header->generate();

DESCRIPTION

Represents a DOF header. Used like Devel::DTrace::DOF::Section objects.

METHODS

new()

Constructor. Takes no arguments.

secnum($num)

Sets the number of DOF sections associated with this header.

loadsz($size)

Sets the "loadable" size of the DOF (full size less any sections not required by the kernel).

filesz($size)

Sets the full size of the DOF.

dof_version($ver)

Sets the version number of this DOF:

Version 1: Solaris, without is_enabled probes
Version 2: Solaris, with is_enabled probes
Version 3: Mac OS X

generate

Returns the generated DOF section.