Kprobes allow developers to write small kernel modules to run code at the start of a function (jprobe), the end of a function (kretprobe), or at any address (kprobe).
开发人员可以用kprobes编写小的内核模块,从而在函数的开头(jprobe)、函数的结尾(kretprobe)或在任何位置(kprobe)运行代码。
Functions create the stack frame during the beginning of the function (called the function prologue) and tear it down at the end of a function (called the function epilogue).
函数在函数开始过程中(称为函数序言(function prologue))创建堆栈帧,并在函数结束时(称为函数尾声(function epilogue))销毁它。
So, when it finds the end of the element, it signals you by triggering the endElement function (that's right: the same function name you specified as your second callback function).
因此它会查找元素的结尾,并触发endElement函数(正是您指定为第二个回调函数的那个endelement函数)向您发出信号。
应用推荐