Devel::DTrace::DOF::Section::Strtab - a DOF ELF-style string table
my $index = 0; my $strtab = Devel::DTrace::DOF::Section::Strtab->new(0); $strtab->add('foo'); $strtab->add('bar'); my $length = $sec->generate(); my $dof = $sec->dof();
Implements an ELF-style string table as a DOF section. Strings can be added incrementally, but are not uniqued - there will be one instance of a string in the table for every invocation of add().
Constructor. Takes the index of the string table in the DOF, often 0.
Adds a string to the table, returning its index in the string table (a byte offset from the start of the table) as required by other DOF sections.
Devel::DTrace::DOF::Section
To install Devel::DTrace::Provider, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::DTrace::Provider
CPAN shell
perl -MCPAN -e shell install Devel::DTrace::Provider
For more information on module installation, please visit the detailed CPAN module installation guide.