[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

General Programming Concepts: Writing and Debugging Programs


Trace Hook IDs: 10B through 14E

The following trace hook IDs are stored in the /usr/include/sys/trchkid.h file.

10B : HKWD KERN LVMSIMP

This event is recorded by Logical Volume Manager for selected events.

Recorded Data

Event:

LVM rblocked: bp=value Request blocked by conflict resolution

bp=value
Buffer pointer.
LVM pend: bp=value resid=value error=value bflags End of physical operation

bp=value Buffer pointer
resid=value Residual byte count
error=value System error number (the errno global variable)
bflags Buffer flags are defined in the sys/buf.h file.

bp=value Buffer pointer
resid=value Residual byte count
error=value System error number (the errno global variable)
bflags Buffer flags are defined in the sys/buf.h file.
LVM lstart: device name bp=value lblock=value bcount=value bflags opts:value Start of logical operation

device name Device name
bp=value Buffer pointer
lblock=value Logical block number
bcount=value Byte count
bflags Buffer flags are defined in the sys/buf.h file
opts: value Possible values:

WRITEV

HWRELOC

UNSAFEREL

RORELOC

NO_MNC

MWC_RCV_OP

RESYNC_OP

AVOID_C1

AVOID_C2

AVOID_C3


device name
                          Device name
pblock=value Physical block number
(lbp,pbp)=(lbp,pbp) Description of variables:

lbp
Logical buffer pointer

pbp
Physical buffer pointer.
opts: value Possible values:

WRITEV

HWRELOC

UNSAFEREL

RORELOC

NO_MNC

MWC_RCV_OP

RESYNC_OP

AVOID_C1

AVOID_C2

AVOID_C3

bflags   Buffer flags are defined in the sys/buf.h file

filename   File path name.

10C : HKWD KERN IDLE

This event is recorded by the dispatcher when dispatching a thread of the idle process.

Recorded Data

dispatch: idle process pid=process id tid=thread id priority=priority old_tid=old thread id old_priority=old priority

process id Process ID of the dispatched thread.
thread id Thread ID of the dispatched thread.
priority Priority of the dispatched thread.
old thread id Thread ID of the thread that dispatches.
old priority Priority of the thread that dispatches.

10F : HKWD KERN EOF

This event is recorded by the kernel end of a file routine.

Recorded Data

KERN_EOF hookdata data

hookdata data The data printed for this event is recorded in hexadecimal.

110 : HKWD KERN STDERR

This event is recorded by the kernel stderr routine.

Recorded Data

KERN_STERR hookdata data

hookdata data The data recorded for the event is printed in hexadecimal.

112 : HKWD KERN LOCK

This event is recorded on each lock request.

Recorded Data

lock: sub-hook lock addr=lock lock status=content request_mode=mode return addr=address name=name

sub-hook Possible values:

lock

miss

recu

busy

lock Address of the lock.
content Content of the lock

Possible values:

LOCK_WRITE

LOCK_READ

LOCK_UPGRADE

LOCK_DOWNGRADE

address - Return address of the call.

name

113 : HKWD KERN UNLOCK

This event is recorded on each unlock request.

Recorded Data

unlock: lock addr=lock lock status=content return addr=address name=name

lock Address of the lock.
content Content of the lock
address Return address of the call.

name

114 : HKWD KERN LOCKALLOC

This event is recorded when allocating a lock.

Recorded Data

lockalloc: lock addr=lock name=class.occurence return addr=address

lock Address of the lock.
class Class name of the lock.
occurence Index of the lock in the class.
address Return address of the call.

115 : HKWD KERN SETRECURSIVE

This event is recorded by the lock_set_recursive and lock_clear_recursive kernel services.

Recorded Data

SETRECURSIVE lock addr=lock return addr=address

CLEARRECURSIVE lock addr=lock return addr=address

lock Address of the lock.
address Return address of the call.

116 : HKWD KERN XMALLOC

This event is recorded by the kernel xmalloc routine.

Recorded Data

xmalloc (size, align, heap)

size Number of bytes to allocate
align Alignment characteristics for the allocated memory
heap Address of the heap from which memory is to be allocated.

117 : HKWD KERN XMFREE

This event is recorded by the kernel xmfree routine.

Recorded Data

xfree (address, heap)

address Address of area in memory to free
heap Address of the heap from which memory is to be allocated.

118 : HKWD KERN FORKCOPY

This event is recorded by the forkcopy routine.

Recorded Data

vmm_forkcopy

119 : HKWD KERN SENDSIGNAL

This event is recorded by the kernel sendsignal routine.

Recorded Data

KERN_SENDSIGNAL hookdata data

hookdata data The data recorded for this event is printed in hexadecimal.

11A : HKWD KERN RCVSIGNAL

This event is recorded by the kernel rcvsignal routine.

Recorded Data

KERN_RCVSIGNAL hookdata data

hookdata data The data recorded for this event is printed in hexadecimal.

11B : HKWD KERN LOCKL

This event is recorded by the kernel lockl routine.

Recorded Data

KERN_LOCKL hookdata data

hookdata data The data recorded for this event is printed in hexadecimal.

11C : HKWD KERN P SLIH

This event is recorded by the sigreturn routine.

Recorded Data

KERN_SIGRETURN hookdata data

hookdata data The data recorded for this event is printed in hexadecimal.

11D : HKWD KERN SIG SLIH

This event is recorded by the sigdeliver routine.

Recorded Data

KERN_SIGDELIVER hookdata data

hookdata data The data recorded for this event is printed in hexadecimal.

11E : HKWD KERN ISSIG

This event is recorded by the kernel issig routine.

Recorded Data

issig

11F : HKWD KERN SORQ

This event is recorded by the kernel set on ready queue routine.

Recorded Data

setrq: cmd=process name pid=process id tid=thread id priority=priority policy=policy

process name Process name of the thread set on the ready queue.
process id Process ID of the thread set on the ready queue.
thread id Thread ID of the thread set on the ready queue.
priority Priority of the thread set on the ready queue.
policy Scheduling policy of the thread set on the ready queue.

120 : HKWD SYSC ACCESS

This event is recorded by the access subroutine.

Recorded Data

access mode=value

mode=value Requested access.

121 : HKWD SYSC ACCT

This event is recorded by the acct subroutine.

Recorded Data

acct fname=value

fname=value File path name.

122 : HKWD SYSC ALARM

This event is recorded by the alarm subroutine.

Recorded Data

alarm secs seconds

alarm off (zero seconds specified)

secs seconds Number of seconds specified.

12E : HKWD SYSC CLOSE

This event is recorded by the close subroutine.

Recorded Data

close filename fd=value

filename File path name
fd=value File descriptor.

134 : HKWD SYSC EXECVE

This event is recorded by the exec subroutine.

Recorded Data

File path name.

filename File path name.
process id Process ID.
thread id Thread ID.

135 : HKWD SYSC EXIT

This event is recorded by the exit subroutine.

Recorded Data

exit wait_status=value lockct=value

wait_status=value Wait status
lockct=value Lock count.

139 : HKWD SYSC FORK

This event is recorded by the fork subroutine.

Recorded Data

Process ID.

process id Process ID.
thread id Thread ID.

145 : HKWD SYSC GETPGRP

This event is recorded by the getpgrp subroutine.

Recorded Data

GETPGRP

146 : HKWD SYSC GETPID

This event is recorded by the getpid subroutine.

Recorded Data

GETPID

147 : HKWD SYSC GETPPID

This event is recorded by the getppid subroutine.

Recorded Data

GETPPID

14C : HKWD SYSC IOCTL

This event is recorded by the ioctl subroutine.

Recorded Data

Event:

ioctl fd=value command=value arg=value

ioctl fd=value TCGETA

ioctl fd=value TCSETA

ioctl fd=value TCSETAW

ioctl fd=value TCSETAF

ioctl fd=value TCSBRK arg=value

ioctl fd=value TCXONC arg=value

ioctl fd=value TCXFLSH arg=value

fd=value File descriptor.

command=value

arg=value

14E : HKWD SYSC KILL

This event is recorded by the kill subroutine.

Recorded Data

signal value Signal name.
to process process id
process name


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]