profil(2) System Calls Manual profil(2)Name
profil - execution time profile
Syntax
void profil(buff, bufsiz, offset, scale)
char *buff;
int bufsiz, offset, scale;
Description
The 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 exam-
ined each clock tick (on RISC machines, 4 milliseconds; on VAX machines, 10 milliseconds); offset is subtracted from the pc, and the result
is 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: 0x10000 gives a 1-1 mapping of program
counter's to words in buff; 0x8000 maps each pair of instruction words together. 0x2 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
execve is executed, but remains on in both child and parent after a fork. Profiling is turned off if an update in buff would cause a mem-
ory fault.
See Alsogprof(1) (for VAX only), setitimer(2), monitor(3)profil(2)
Check Out this Related Man Page
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)
I have followed instructions to get the jdk for sparc, 1.3 loaded on this sparc workstation machine. I used a tar file and everything seemed to go fine. The usr/j2se directory was created with all the subdirectories and java files. However, attempting to run Java commands fails with a file not... (18 Replies)
Hello all,
I want to call my users .profile in cron?
I understand that i have to do it explicitly in crontab entry.
How can we do it ? How can i write a simple script calling it?
Thanks & Regards
Abhijeet (15 Replies)
The “set -o vi” command won't run in the .profile. WHY?
This has me puzzled as the problem seems to be too simple, but can't figure it out. Here's the info...
Running...
Generic sun4u sparc SUNW,Ultra-5_10
K shell
Here's the .profile
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All... (12 Replies)
Hi
I am not able to setup PS1 environment variable in .profile file in my Home directory.I am using RED HAT3 Linux.this is the excercise that i have done
$echo $SHELL
/bin/ksh
$pwd
/home/khan
$ls -l .profile
-rwxrwxrwx
$more .profile
set -o vi
export PS1='khan'
$echo $PS1
$ (13 Replies)
Hello all,
I am having an issue setting up an environment on .profile. I want to set up my .profile in that way that everytime I login to the host, it should automatically set up my group. I tried the folllowing but it doesn't work. It is on the solaris OS.
HOSTNAME=$(hostname)
if ] || ]... (14 Replies)
Hi,
Below is what i have in my profile:
alias wldm='cd /opt/app/wls'
If i use bash or ksh shell this alias does not work.
What should be done for this alias to work with all these simultaneously -> No Shell, bash shell, and ksh shell (14 Replies)
Hello,
I'm trying to compile my code with ‘-pg' option in order to use GNU profiler as follows:
gcc example1.c -pg -o example1 -O2 -lc
But I'm getting this error :
collect2: gcrt0.o: cannot open as COFF file
I'm working on AIX 5.3
Thanks in advance for your help (17 Replies)
Hi Gurus,
Recently we have migrated our servers from AIX to Linux. Most of the scripts written in AIX server are sourcing environment variables using .profile file. Now we have the following options:
1. Change all the scripts where ever .profile is being used and replace it with... (14 Replies)
Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Hi,
Please assist me why HC alias is not working under this shell?
root@singapore # grep HC /.profile
alias HC='cd /var/tmp/HC/2015/`date +%B`'
root@singapore # . /.profile
Sourcing //.profile-EIS.....
root@singapore # echo $HC
root@singapore # HC
HC: not found
root@singapore # echo... (18 Replies)
Hello All,
I am having an issue with ellipse environment,
Subscribing ellipse version /opt/mincom/ellipse/bs037__ora_cics_svr
.profile: ulimit: exceeds allowable limit ,
prj -l ellsupp
#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192... (22 Replies)