MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/systemtap/tapset/LKET/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/systemtap/tapset/LKET/syscalls.stp
// Copyright (C) 2005, 2006 IBM Corp.
//
// This file is part of systemtap, and is free software.  You can
// redistribute it and/or modify it under the terms of the GNU General
// Public License (GPL); either version 2, or (at your option) any
// later version.

probe never
{
        printf("%d", GROUP_SIGNAL)
}

probe addevent.syscall
	= addevent.syscall.entry,
	addevent.syscall.return
{}

probe addevent.syscall.entry
	+= _addevent.syscall.entry
{
	update_record()
}

probe _addevent.syscall.entry
	= syscall.*
{
	log_syscall_tracedata(1, name)
}

probe addevent.syscall.return
	+= _addevent.syscall.return
{
	update_record()
}

probe _addevent.syscall.return
	= syscall.*.return
{
	log_syscall_tracedata(2, name)
}

/* log the system call name */
function log_syscall_tracedata(var_id:long, name:string)
%{
	_lket_trace(_GROUP_SYSCALL, THIS->var_id, "%0s", THIS->name); 
%}



Anon7 - 2021