11-17-2004
See the man pages for profil(2) and monitor(3c)
4 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
2. Programming
Dear All,
I have my C/C++ appliaction running on Sun Solaris 5.9.
Can any of you please suggest a profiler which i can use for improving the code performance.
Please reply as i am stuck with the performance of the code. (1 Reply)
Discussion started by: ashisharora
1 Replies
3. Shell Programming and Scripting
What is a hard and soft match in unix profiler ??? (1 Reply)
Discussion started by: ekharvi
1 Replies
4. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
PROFIL(2) System Calls Manual PROFIL(2)
NAME
profil - execution time profile
SYNOPSIS
profil(buff, bufsiz, offset, scale)
char *buff;
int bufsiz, offset, scale;
DESCRIPTION
Buff points to an area of core whose length (in bytes) is given by bufsiz. After this call, the user's program counter (pc) is examined
each clock tick (60th second); offset is subtracted from it, and the result multiplied by scale. If the resulting number corresponds to a
word inside buff, that word is incremented.
The scale is interpreted as an unsigned, fixed-point fraction with binary point at the left: 0177777(8) gives a 1-1 mapping of pc's to
words in buff; 077777(8) maps each pair of instruction words together. 02(8) maps all instructions onto the beginning of buff (producing a
non-interrupting core clock).
Profiling is turned off by giving a scale of 0 or 1. It is rendered ineffective by giving a bufsiz of 0. Profiling is turned off when an
exec is executed, but remains on in child and parent both after a fork. Profiling may be turned off if an update in buff would cause a
memory fault.
SEE ALSO
monitor(3), prof(1)
ASSEMBLER
(profil = 44.)
sys profil; buff; bufsiz; offset; scale
PROFIL(2)