lkml.org 
[lkml]   [2010]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 13/14] cleanup: remove arg from TRACE_SYS_ENTER_PROFILE_INIT() macro
Since TRACE_SYS_ENTER_PROFILE_INIT() and TRACE_SYS_EXIT_PROFILE_INIT() don't do
anything with their arguments, remove them. Also, TRACE_SYS_ENTER_PROFILE() and
TRACE_SYS_EXIT_PROFILE() don't appear to be used. remove them.

Signed-off-by: Jason Baron <jbaron@redhat.com>
---
include/linux/syscalls.h | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 4cbc370..501cd46 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -101,18 +101,16 @@ struct perf_event_attr;

#ifdef CONFIG_PERF_EVENTS

-#define TRACE_SYS_ENTER_PROFILE_INIT(sname) \
+#define TRACE_SYS_ENTER_PROFILE_INIT \
.profile_enable = prof_sysenter_enable, \
.profile_disable = prof_sysenter_disable,

-#define TRACE_SYS_EXIT_PROFILE_INIT(sname) \
+#define TRACE_SYS_EXIT_PROFILE_INIT \
.profile_enable = prof_sysexit_enable, \
.profile_disable = prof_sysexit_disable,
#else
-#define TRACE_SYS_ENTER_PROFILE(sname)
-#define TRACE_SYS_ENTER_PROFILE_INIT(sname)
-#define TRACE_SYS_EXIT_PROFILE(sname)
-#define TRACE_SYS_EXIT_PROFILE_INIT(sname)
+#define TRACE_SYS_ENTER_PROFILE_INIT
+#define TRACE_SYS_EXIT_PROFILE_INIT
#endif /* CONFIG_PERF_EVENTS */

#ifdef CONFIG_FTRACE_SYSCALLS
@@ -149,7 +147,7 @@ struct perf_event_attr;
.regfunc = reg_event_syscall_enter, \
.unregfunc = unreg_event_syscall_enter, \
.data = (void *)&__syscall_meta_##sname,\
- TRACE_SYS_ENTER_PROFILE_INIT(sname) \
+ TRACE_SYS_ENTER_PROFILE_INIT \
}

#define SYSCALL_TRACE_EXIT_EVENT(sname) \
@@ -171,7 +169,7 @@ struct perf_event_attr;
.regfunc = reg_event_syscall_exit, \
.unregfunc = unreg_event_syscall_exit, \
.data = (void *)&__syscall_meta_##sname,\
- TRACE_SYS_EXIT_PROFILE_INIT(sname) \
+ TRACE_SYS_EXIT_PROFILE_INIT \
}

#define SYSCALL_METADATA(rname, sname, nb) \
--
1.6.5.1


\
 
 \ /
  Last update: 2010-03-16 18:51    [from the cache]
©2003-2011 Jasper Spaans