I wrote this kernel module to test the correctness of ndelay() function.
Kernel mdoule:
The output of dmesg:
Here my question is I'm trying to measure 100ns delay, but I'm getting output in 300's. One of the possible things that can happen is storing the value of ktime_get() into end module is taking some time. So can anyone please suggest me alternative or where I'm going wrong.
Can anyone please help me in measuring the system call timings!
How do I do it if I have to measure the timing of an operation, say getpid system call.
What different functions can I use for that and what would be the difference using each of them?
Thanx! (3 Replies)
i have a wireless network that is connected to internet over nat.there is ap that is connected to another ap in bridge mode, on ap is used for clients, and the other is connected to the machine that is doing masquerading. so i want to measure traffic of my clients and i thought about doing it with... (0 Replies)
I have a Java program. I want to measure the total memory used by the program, especially the peak memory. Is there a way to do it?
I have tried utilities like time (which returns 0) and top (which is not very useful) as the program does not run for long.
Can anyone suggest a way to do this?... (5 Replies)
HI
I have a Red Hat Enterprise with Real Time kernel.
Are you aware if there are C functions for this kernel or some code/library for this OS for measuring time more lightweight than clock_gettime and gettimeofday? THe hardware I have is NUMA.
Reading forums I found gethrtime but it is... (1 Reply)
Discussion started by: manustone
1 Replies
LEARN ABOUT DEBIAN
aio
AIO(4) BSD Kernel Interfaces Manual AIO(4)NAME
aio -- asynchronous I/O
SYNOPSIS
To link into the kernel:
options VFS_AIO
To load as a kernel loadable module:
kldload aio
DESCRIPTION
The aio facility provides system calls for asynchronous I/O. It is available both as a kernel option for static inclusion and as a dynamic
kernel module.
SEE ALSO aio_cancel(2), aio_error(2), aio_read(2), aio_return(2), aio_suspend(2), aio_waitcomplete(2), aio_write(2), lio_listio(2), config(8),
kldload(8), kldunload(8)HISTORY
The aio facility appeared as a kernel option in FreeBSD 3.0. The aio kernel module appeared in FreeBSD 5.0.
BSD October 24, 2002 BSD