mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-19 01:22:36 +08:00
完善的测试...
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
# http://blog.csdn.net/justlinux2010/article/details/10050265
|
||||
function print_value()
|
||||
{
|
||||
printf("probefunc = %s, ppfunc = %s", probefunc( ), ppfunc( ));
|
||||
printf("probefunc = %s, ppfunc = %s, pp = %s\n", probefunc( ), ppfunc( ), pp( ));
|
||||
printf("pid = %d, tid = %d, common = %s\n", pid( ), tid( ), execname( ));
|
||||
printf("cpu = %d, probefunc = %s", cpu( ), probefunc( ));
|
||||
|
||||
printf("cpu = %d, cycle = %d\n", cpu( ), get_cycles( ));
|
||||
#printf("time = %s", gettimeofday_s( ));
|
||||
print_backtrace( );
|
||||
print_ubacktrace( );
|
||||
#printf("indent = %d\n", thread_indent( ));
|
||||
|
||||
}
|
||||
|
||||
probe begin
|
||||
{
|
||||
print("Hello World\n")
|
||||
print_value( );
|
||||
exit()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user