2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
9 #include "syscall_user.h"
17 } syscall_record
[1024];
19 int record_syscall_start(int syscall
)
23 max
= sizeof(syscall_record
)/sizeof(syscall_record
[0]);
24 index
= next_syscall_index(max
);
26 syscall_record
[index
].syscall
= syscall
;
27 syscall_record
[index
].pid
= current_pid();
28 syscall_record
[index
].result
= 0xdeadbeef;
29 gettimeofday(&syscall_record
[index
].start
, NULL
);
33 void record_syscall_end(int index
, long result
)
35 syscall_record
[index
].result
= result
;
36 gettimeofday(&syscall_record
[index
].end
, NULL
);
40 * Overrides for Emacs so that we follow Linus's tabbing style.
41 * Emacs will notice this stuff at the end of the file and automatically
42 * adjust the settings for this buffer only. This must remain at the end
44 * ---------------------------------------------------------------------------
46 * c-file-style: "linux"