aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-13 14:37:33 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-16 16:33:15 -0500
commit7f24b31b01a271b62346d9df084b029e48612163 (patch)
treead611a62206455b128db3032bf1a535207b1d20f /kernel/trace/ftrace.c
parent265c831cb03d533cbe159af45798ac9fef534260 (diff)
ftrace: rename ftrace_match to ftrace_match_records
Impact: clean up ftrace_match is too generic of a name. What it really does is search all records and matches the records with the given string, and either sets or unsets the functions to be traced depending on if the parameter 'enable' is set or not. This allows us to make another function called ftrace_match that can be used to test a single record. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index fed1ebc3a133..f397d7adb62e 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -1054,7 +1054,7 @@ enum {
1054}; 1054};
1055 1055
1056static void 1056static void
1057ftrace_match(unsigned char *buff, int len, int enable) 1057ftrace_match_records(unsigned char *buff, int len, int enable)
1058{ 1058{
1059 char str[KSYM_SYMBOL_LEN]; 1059 char str[KSYM_SYMBOL_LEN];
1060 char *search = NULL; 1060 char *search = NULL;
@@ -1197,7 +1197,7 @@ ftrace_regex_write(struct file *file, const char __user *ubuf,
1197 if (isspace(ch)) { 1197 if (isspace(ch)) {
1198 iter->filtered++; 1198 iter->filtered++;
1199 iter->buffer[iter->buffer_idx] = 0; 1199 iter->buffer[iter->buffer_idx] = 0;
1200 ftrace_match(iter->buffer, iter->buffer_idx, enable); 1200 ftrace_match_records(iter->buffer, iter->buffer_idx, enable);
1201 iter->buffer_idx = 0; 1201 iter->buffer_idx = 0;
1202 } else 1202 } else
1203 iter->flags |= FTRACE_ITER_CONT; 1203 iter->flags |= FTRACE_ITER_CONT;
@@ -1236,7 +1236,7 @@ ftrace_set_regex(unsigned char *buf, int len, int reset, int enable)
1236 if (reset) 1236 if (reset)
1237 ftrace_filter_reset(enable); 1237 ftrace_filter_reset(enable);
1238 if (buf) 1238 if (buf)
1239 ftrace_match(buf, len, enable); 1239 ftrace_match_records(buf, len, enable);
1240 mutex_unlock(&ftrace_regex_lock); 1240 mutex_unlock(&ftrace_regex_lock);
1241} 1241}
1242 1242
@@ -1286,7 +1286,7 @@ ftrace_regex_release(struct inode *inode, struct file *file, int enable)
1286 if (iter->buffer_idx) { 1286 if (iter->buffer_idx) {
1287 iter->filtered++; 1287 iter->filtered++;
1288 iter->buffer[iter->buffer_idx] = 0; 1288 iter->buffer[iter->buffer_idx] = 0;
1289 ftrace_match(iter->buffer, iter->buffer_idx, enable); 1289 ftrace_match_records(iter->buffer, iter->buffer_idx, enable);
1290 } 1290 }
1291 1291
1292 mutex_lock(&ftrace_sysctl_lock); 1292 mutex_lock(&ftrace_sysctl_lock);