针对这个新函数更新系统调用表。
这个系统调用返回一个文件描述符。
使用新的内核系统调用有两种方法。
There are two ways that you can use new kernel system calls.
在本文中,将学习以下系统调用。
为此它使用了系统调用fork 。
内存和用户数量对系统调用的影响
这就是第3个步骤,更新系统调用表。
SCI的核心是系统调用多路分解表。
At the core of the SCI is the system call demultiplexing table.
在bind系统调用函数中。
因此,系统调用被命名为fork 。
本文仅讨论sendmsg系统调用。
retval是系统调用的返回值。
您还需要考虑系统调用跟踪本身的开销。
系统调用接口可以从两个角度进行描述。
The system call interface can be described from two perspectives.
exec系列系统调用运行实际的程序。
清单1.madvise系统调用。
当前,对于系统调用,只支持出口探查点。
Currently, the exit probe point is supported for system calls only.
清单3. sendfile系统调用。
示例:读取系统调用所有进程的出口的探针。
fork(2)系统调用创建一个新进程。
系统调用与库函数比较—以及一点历史知识。
在下面将看到系统调用的代码,它有四个参数。
Here you can see the code for the system call, with four parameters.
chroot系统调用有很多问题,如前所述。
The system call chroot has a number of problems, as noted above.
系统调用入口/出口探针(或syscall)
这个系统调用向指定设备发送控制代码和其他数据。
This system call sends control code and other data to a specified device.
清单1所示的前两个函数,是系统调用的简单示例。
The first two functions, shown in Listing 1, are simple examples of a system call.
通过read()系统调用读取事件发生数据。
如果是Linux,你必须熟悉unix系统调用。
向内核中添加新系统调用,需要执行3 个基本步骤
You perform three basic steps to add a new system call to the kernel
向内核中添加新系统调用,需要执行3 个基本步骤
You perform three basic steps to add a new system call to the kernel
应用推荐