10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am new to the linux kernel development area. I want to know what is the difference between kernel mode stack and user mode stack? Does each process has a user mode stack and a kernel mode stack?? Or Each process has a user mode stack and there is only one kernel mode stack that is shared by... (4 Replies)
Discussion started by: saurabhkoar
4 Replies
2. Programming
Hi,all:
I run my program which consists of one kernel module and one user mode process on a dual core server. The problem here is the kernel module consumes 100% of one core while the user mode process only consumes 10% of the other core, is there any solution that I can assign some computing... (1 Reply)
Discussion started by: neyshule
1 Replies
3. Programming
Hi everyone. I would like to hook a system function (gettimeofday) to modify it. I guess I'll need kernel mode to do that. By the way, how could I do it (c++ or c)?
I want to modify that function for one process which I know the PID. So I need to return my own value for that PID and real value... (29 Replies)
Discussion started by: lilezek
29 Replies
4. Programming
when transitionaning from user to kernel mode which function copies data from user mode buffer to kernel mode? (5 Replies)
Discussion started by: rupeshkp728
5 Replies
5. UNIX for Dummies Questions & Answers
hi all,
i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies
6. UNIX for Advanced & Expert Users
Can kernel process access user address space ? (2 Replies)
Discussion started by: subhotech
2 Replies
7. UNIX for Dummies Questions & Answers
Hi all i have queastion. Can anybody pease help me
what is user mode and kernel mode and the term "De-mountable volumes" means?
Thanks
Palash (2 Replies)
Discussion started by: palash2k
2 Replies
8. HP-UX
Hi,
Please any one can help me to know that how we can restrict a user group to access the kernel at all. (0 Replies)
Discussion started by: harishankar
0 Replies
9. Programming
Hi all,
I am trying to setup a program to use a device driver and am confusing buffer access between User and Kernel mode. I think all applications running in User space have to communicate with the device drivers using io control calls and then have some functions called back from the driver... (1 Reply)
Discussion started by: Brendan Kennedy
1 Replies
10. SCO
hi,
I am trying to install sco openserver 5.0.4 on an old system. However, l was not able to proceed after putting the bootstr
l have this panic message of
PANIC: K_trap - kernel mode trap tupe 0x00000006
will someone kindly help to decode this error
kayode (1 Reply)
Discussion started by: kayode
1 Replies
TPROF(8) BSD System Manager's Manual TPROF(8)
NAME
tprof -- record tprof profiling samples
SYNOPSIS
tprof [-c] [-o file] command ...
DESCRIPTION
The tprof is a sampling based profiler.
tprof utility makes the kernel driver start profiling, executes the specified command, keeps recording samples from the kernel driver until
the command finishes, and reports statistics to the standard error.
The tprof pseudo driver and a suitable backend should be loaded beforehand.
The tprof utility accepts the following options.
-o file Write the collected samples to the file named file. The default is ``tprof.out''.
-c Write the collected samples to the standard output. Note that the output is a binary stream.
EXAMPLES
The following command profiles the system during 1 second and shows the top-10 kernel functions which likely consumed CPU cycles.
tprof -c sleep 1 2>/dev/null | tpfmt -skCLP | head -10
DIAGNOSTICS
The tprof utility reports the following statistics about the activities of the tprof pseudo driver.
sample The number of samples collected and prepared for userland consumption.
overflow The number of samples dropped because the per-CPU buffer was full.
buf The number of buffers successfully prepared for userland consumption.
emptybuf The number of buffers which have been dropped because they were empty.
dropbuf The number of buffers dropped because the number of buffers kept in the kernel exceeds the limit.
dropbuf_samples The number of samples dropped because the buffers containing the samples were dropped.
SEE ALSO
tpfmt(1), tprof(4)
AUTHORS
The tprof utility is written by YAMAMOTO Takashi.
CAVEATS
The contents and representation of recorded samples are undocumented and will likely be changed for future releases of NetBSD in an incompat-
ible way.
BSD
November 26, 2011 BSD