diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-07-28 01:41:14 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2011-10-10 17:29:37 -0400 |
commit | d0d4d8dbb2c61fe2f693e4d9ded04489bddd7b53 (patch) | |
tree | 5d4a917a54a249831ea2dfd37bdc0fecbb611e0d /litmus/locking.c | |
parent | c9b77cc06d84ce3baad31da1e914615bcd8f0740 (diff) |
Feather-Trace: Simplify syscall-in overhead tracing
Just stick TS_SYSCALL_IN_START into any
system call that needs tracing.
Diffstat (limited to 'litmus/locking.c')
-rw-r--r-- | litmus/locking.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/litmus/locking.c b/litmus/locking.c index 232ded07b34b..bc4150804250 100644 --- a/litmus/locking.c +++ b/litmus/locking.c | |||
@@ -71,8 +71,7 @@ asmlinkage long sys_litmus_lock(int lock_od) | |||
71 | struct od_table_entry* entry; | 71 | struct od_table_entry* entry; |
72 | struct litmus_lock* l; | 72 | struct litmus_lock* l; |
73 | 73 | ||
74 | if (has_control_page(current)) | 74 | TS_SYSCALL_IN_START; |
75 | TS_SYSCALL_IN_START(&get_control_page(current)->ts_syscall_start); | ||
76 | 75 | ||
77 | TS_SYSCALL_IN_END; | 76 | TS_SYSCALL_IN_END; |
78 | 77 | ||
@@ -100,8 +99,7 @@ asmlinkage long sys_litmus_unlock(int lock_od) | |||
100 | struct od_table_entry* entry; | 99 | struct od_table_entry* entry; |
101 | struct litmus_lock* l; | 100 | struct litmus_lock* l; |
102 | 101 | ||
103 | if (has_control_page(current)) | 102 | TS_SYSCALL_IN_START; |
104 | TS_SYSCALL_IN_START(&get_control_page(current)->ts_syscall_start); | ||
105 | 103 | ||
106 | TS_SYSCALL_IN_END; | 104 | TS_SYSCALL_IN_END; |
107 | 105 | ||