☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.base
/
set_user.c
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/set_user.c
code
plain
raw
1
#include <unistd.h>
2
#include <stdlib.h>
3
#include <string.h>
4
#include <sys/mman.h>
5
#include <sys/sdt.h>
6
int main()
7
{
8
char cbuf[64];
9
10
mlockall(MCL_CURRENT);
11
memset(cbuf,'a',sizeof(cbuf));
12
STAP_PROBE(set_user.exe,point);
13
exit(0);
14
}