diff options
| author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-13 15:12:33 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 15:24:57 -0400 |
| commit | 5d6ad960a71f0b36d95d74ef93285733b9f62f59 (patch) | |
| tree | 284a9929cd503241461b3bae00938a4e66a002c4 /kernel/trace | |
| parent | 7967b3e0c40ff72fb2cf44d3b50e2cb388ef6c67 (diff) | |
tracing: Rename FTRACE_EVENT_FL_* flags to EVENT_FILE_FL_*
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. The FTRACE_EVENT_FL_* flags are flags to
do with the trace_event files in the tracefs directory. They are not related
to function tracing. Rename them to a more descriptive name.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
| -rw-r--r-- | kernel/trace/trace.c | 4 | ||||
| -rw-r--r-- | kernel/trace/trace_events.c | 62 | ||||
| -rw-r--r-- | kernel/trace/trace_events_filter.c | 10 | ||||
| -rw-r--r-- | kernel/trace/trace_events_trigger.c | 14 |
4 files changed, 45 insertions, 45 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 07ff08661167..abcbf7ff8743 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
| @@ -301,7 +301,7 @@ int filter_check_discard(struct trace_event_file *file, void *rec, | |||
| 301 | struct ring_buffer *buffer, | 301 | struct ring_buffer *buffer, |
| 302 | struct ring_buffer_event *event) | 302 | struct ring_buffer_event *event) |
| 303 | { | 303 | { |
| 304 | if (unlikely(file->flags & FTRACE_EVENT_FL_FILTERED) && | 304 | if (unlikely(file->flags & EVENT_FILE_FL_FILTERED) && |
| 305 | !filter_match_preds(file->filter, rec)) { | 305 | !filter_match_preds(file->filter, rec)) { |
| 306 | ring_buffer_discard_commit(buffer, event); | 306 | ring_buffer_discard_commit(buffer, event); |
| 307 | return 1; | 307 | return 1; |
| @@ -1709,7 +1709,7 @@ trace_event_buffer_lock_reserve(struct ring_buffer **current_rb, | |||
| 1709 | * to store the trace event for the tigger to use. It's recusive | 1709 | * to store the trace event for the tigger to use. It's recusive |
| 1710 | * safe and will not be recorded anywhere. | 1710 | * safe and will not be recorded anywhere. |
| 1711 | */ | 1711 | */ |
| 1712 | if (!entry && trace_file->flags & FTRACE_EVENT_FL_TRIGGER_COND) { | 1712 | if (!entry && trace_file->flags & EVENT_FILE_FL_TRIGGER_COND) { |
| 1713 | *current_rb = temp_buffer; | 1713 | *current_rb = temp_buffer; |
| 1714 | entry = trace_buffer_lock_reserve(*current_rb, | 1714 | entry = trace_buffer_lock_reserve(*current_rb, |
| 1715 | type, len, flags, pc); | 1715 | type, len, flags, pc); |
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 58984c252aac..404a372ad85a 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
| @@ -298,15 +298,15 @@ void trace_event_enable_cmd_record(bool enable) | |||
| 298 | mutex_lock(&event_mutex); | 298 | mutex_lock(&event_mutex); |
| 299 | do_for_each_event_file(tr, file) { | 299 | do_for_each_event_file(tr, file) { |
| 300 | 300 | ||
| 301 | if (!(file->flags & FTRACE_EVENT_FL_ENABLED)) | 301 | if (!(file->flags & EVENT_FILE_FL_ENABLED)) |
| 302 | continue; | 302 | continue; |
| 303 | 303 | ||
| 304 | if (enable) { | 304 | if (enable) { |
| 305 | tracing_start_cmdline_record(); | 305 | tracing_start_cmdline_record(); |
| 306 | set_bit(FTRACE_EVENT_FL_RECORDED_CMD_BIT, &file->flags); | 306 | set_bit(EVENT_FILE_FL_RECORDED_CMD_BIT, &file->flags); |
| 307 | } else { | 307 | } else { |
| 308 | tracing_stop_cmdline_record(); | 308 | tracing_stop_cmdline_record(); |
| 309 | clear_bit(FTRACE_EVENT_FL_RECORDED_CMD_BIT, &file->flags); | 309 | clear_bit(EVENT_FILE_FL_RECORDED_CMD_BIT, &file->flags); |
| 310 | } | 310 | } |
| 311 | } while_for_each_event_file(); | 311 | } while_for_each_event_file(); |
| 312 | mutex_unlock(&event_mutex); | 312 | mutex_unlock(&event_mutex); |
| @@ -337,24 +337,24 @@ static int __ftrace_event_enable_disable(struct trace_event_file *file, | |||
| 337 | if (soft_disable) { | 337 | if (soft_disable) { |
| 338 | if (atomic_dec_return(&file->sm_ref) > 0) | 338 | if (atomic_dec_return(&file->sm_ref) > 0) |
| 339 | break; | 339 | break; |
| 340 | disable = file->flags & FTRACE_EVENT_FL_SOFT_DISABLED; | 340 | disable = file->flags & EVENT_FILE_FL_SOFT_DISABLED; |
| 341 | clear_bit(FTRACE_EVENT_FL_SOFT_MODE_BIT, &file->flags); | 341 | clear_bit(EVENT_FILE_FL_SOFT_MODE_BIT, &file->flags); |
| 342 | } else | 342 | } else |
| 343 | disable = !(file->flags & FTRACE_EVENT_FL_SOFT_MODE); | 343 | disable = !(file->flags & EVENT_FILE_FL_SOFT_MODE); |
| 344 | 344 | ||
| 345 | if (disable && (file->flags & FTRACE_EVENT_FL_ENABLED)) { | 345 | if (disable && (file->flags & EVENT_FILE_FL_ENABLED)) { |
| 346 | clear_bit(FTRACE_EVENT_FL_ENABLED_BIT, &file->flags); | 346 | clear_bit(EVENT_FILE_FL_ENABLED_BIT, &file->flags); |
| 347 | if (file->flags & FTRACE_EVENT_FL_RECORDED_CMD) { | 347 | if (file->flags & EVENT_FILE_FL_RECORDED_CMD) { |
| 348 | tracing_stop_cmdline_record(); | 348 | tracing_stop_cmdline_record(); |
| 349 | clear_bit(FTRACE_EVENT_FL_RECORDED_CMD_BIT, &file->flags); | 349 | clear_bit(EVENT_FILE_FL_RECORDED_CMD_BIT, &file->flags); |
| 350 | } | 350 | } |
| 351 | call->class->reg(call, TRACE_REG_UNREGISTER, file); | 351 | call->class->reg(call, TRACE_REG_UNREGISTER, file); |
| 352 | } | 352 | } |
| 353 | /* If in SOFT_MODE, just set the SOFT_DISABLE_BIT, else clear it */ | 353 | /* If in SOFT_MODE, just set the SOFT_DISABLE_BIT, else clear it */ |
| 354 | if (file->flags & FTRACE_EVENT_FL_SOFT_MODE) | 354 | if (file->flags & EVENT_FILE_FL_SOFT_MODE) |
| 355 | set_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &file->flags); | 355 | set_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &file->flags); |
| 356 | else | 356 | else |
| 357 | clear_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &file->flags); | 357 | clear_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &file->flags); |
| 358 | break; | 358 | break; |
| 359 | case 1: | 359 | case 1: |
| 360 | /* | 360 | /* |
| @@ -366,22 +366,22 @@ static int __ftrace_event_enable_disable(struct trace_event_file *file, | |||
| 366 | * it still seems to be disabled. | 366 | * it still seems to be disabled. |
| 367 | */ | 367 | */ |
| 368 | if (!soft_disable) | 368 | if (!soft_disable) |
| 369 | clear_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &file->flags); | 369 | clear_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &file->flags); |
| 370 | else { | 370 | else { |
| 371 | if (atomic_inc_return(&file->sm_ref) > 1) | 371 | if (atomic_inc_return(&file->sm_ref) > 1) |
| 372 | break; | 372 | break; |
| 373 | set_bit(FTRACE_EVENT_FL_SOFT_MODE_BIT, &file->flags); | 373 | set_bit(EVENT_FILE_FL_SOFT_MODE_BIT, &file->flags); |
| 374 | } | 374 | } |
| 375 | 375 | ||
| 376 | if (!(file->flags & FTRACE_EVENT_FL_ENABLED)) { | 376 | if (!(file->flags & EVENT_FILE_FL_ENABLED)) { |
| 377 | 377 | ||
| 378 | /* Keep the event disabled, when going to SOFT_MODE. */ | 378 | /* Keep the event disabled, when going to SOFT_MODE. */ |
| 379 | if (soft_disable) | 379 | if (soft_disable) |
| 380 | set_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &file->flags); | 380 | set_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &file->flags); |
| 381 | 381 | ||
| 382 | if (trace_flags & TRACE_ITER_RECORD_CMD) { | 382 | if (trace_flags & TRACE_ITER_RECORD_CMD) { |
| 383 | tracing_start_cmdline_record(); | 383 | tracing_start_cmdline_record(); |
| 384 | set_bit(FTRACE_EVENT_FL_RECORDED_CMD_BIT, &file->flags); | 384 | set_bit(EVENT_FILE_FL_RECORDED_CMD_BIT, &file->flags); |
| 385 | } | 385 | } |
| 386 | ret = call->class->reg(call, TRACE_REG_REGISTER, file); | 386 | ret = call->class->reg(call, TRACE_REG_REGISTER, file); |
| 387 | if (ret) { | 387 | if (ret) { |
| @@ -390,7 +390,7 @@ static int __ftrace_event_enable_disable(struct trace_event_file *file, | |||
| 390 | "%s\n", trace_event_name(call)); | 390 | "%s\n", trace_event_name(call)); |
| 391 | break; | 391 | break; |
| 392 | } | 392 | } |
| 393 | set_bit(FTRACE_EVENT_FL_ENABLED_BIT, &file->flags); | 393 | set_bit(EVENT_FILE_FL_ENABLED_BIT, &file->flags); |
| 394 | 394 | ||
| 395 | /* WAS_ENABLED gets set but never cleared. */ | 395 | /* WAS_ENABLED gets set but never cleared. */ |
| 396 | call->flags |= TRACE_EVENT_FL_WAS_ENABLED; | 396 | call->flags |= TRACE_EVENT_FL_WAS_ENABLED; |
| @@ -716,7 +716,7 @@ s_next(struct seq_file *m, void *v, loff_t *pos) | |||
| 716 | (*pos)++; | 716 | (*pos)++; |
| 717 | 717 | ||
| 718 | list_for_each_entry_continue(file, &tr->events, list) { | 718 | list_for_each_entry_continue(file, &tr->events, list) { |
| 719 | if (file->flags & FTRACE_EVENT_FL_ENABLED) | 719 | if (file->flags & EVENT_FILE_FL_ENABLED) |
| 720 | return file; | 720 | return file; |
| 721 | } | 721 | } |
| 722 | 722 | ||
| @@ -774,12 +774,12 @@ event_enable_read(struct file *filp, char __user *ubuf, size_t cnt, | |||
| 774 | if (!file) | 774 | if (!file) |
| 775 | return -ENODEV; | 775 | return -ENODEV; |
| 776 | 776 | ||
| 777 | if (flags & FTRACE_EVENT_FL_ENABLED && | 777 | if (flags & EVENT_FILE_FL_ENABLED && |
| 778 | !(flags & FTRACE_EVENT_FL_SOFT_DISABLED)) | 778 | !(flags & EVENT_FILE_FL_SOFT_DISABLED)) |
| 779 | strcpy(buf, "1"); | 779 | strcpy(buf, "1"); |
| 780 | 780 | ||
| 781 | if (flags & FTRACE_EVENT_FL_SOFT_DISABLED || | 781 | if (flags & EVENT_FILE_FL_SOFT_DISABLED || |
| 782 | flags & FTRACE_EVENT_FL_SOFT_MODE) | 782 | flags & EVENT_FILE_FL_SOFT_MODE) |
| 783 | strcat(buf, "*"); | 783 | strcat(buf, "*"); |
| 784 | 784 | ||
| 785 | strcat(buf, "\n"); | 785 | strcat(buf, "\n"); |
| @@ -851,7 +851,7 @@ system_enable_read(struct file *filp, char __user *ubuf, size_t cnt, | |||
| 851 | * or if all events or cleared, or if we have | 851 | * or if all events or cleared, or if we have |
| 852 | * a mixture. | 852 | * a mixture. |
| 853 | */ | 853 | */ |
| 854 | set |= (1 << !!(file->flags & FTRACE_EVENT_FL_ENABLED)); | 854 | set |= (1 << !!(file->flags & EVENT_FILE_FL_ENABLED)); |
| 855 | 855 | ||
| 856 | /* | 856 | /* |
| 857 | * If we have a mixture, no need to look further. | 857 | * If we have a mixture, no need to look further. |
| @@ -1932,10 +1932,10 @@ static int probe_remove_event_call(struct trace_event_call *call) | |||
| 1932 | continue; | 1932 | continue; |
| 1933 | /* | 1933 | /* |
| 1934 | * We can't rely on ftrace_event_enable_disable(enable => 0) | 1934 | * We can't rely on ftrace_event_enable_disable(enable => 0) |
| 1935 | * we are going to do, FTRACE_EVENT_FL_SOFT_MODE can suppress | 1935 | * we are going to do, EVENT_FILE_FL_SOFT_MODE can suppress |
| 1936 | * TRACE_REG_UNREGISTER. | 1936 | * TRACE_REG_UNREGISTER. |
| 1937 | */ | 1937 | */ |
| 1938 | if (file->flags & FTRACE_EVENT_FL_ENABLED) | 1938 | if (file->flags & EVENT_FILE_FL_ENABLED) |
| 1939 | return -EBUSY; | 1939 | return -EBUSY; |
| 1940 | /* | 1940 | /* |
| 1941 | * The do_for_each_event_file_safe() is | 1941 | * The do_for_each_event_file_safe() is |
| @@ -2114,9 +2114,9 @@ event_enable_probe(unsigned long ip, unsigned long parent_ip, void **_data) | |||
| 2114 | return; | 2114 | return; |
| 2115 | 2115 | ||
| 2116 | if (data->enable) | 2116 | if (data->enable) |
| 2117 | clear_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &data->file->flags); | 2117 | clear_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &data->file->flags); |
| 2118 | else | 2118 | else |
| 2119 | set_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &data->file->flags); | 2119 | set_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &data->file->flags); |
| 2120 | } | 2120 | } |
| 2121 | 2121 | ||
| 2122 | static void | 2122 | static void |
| @@ -2132,7 +2132,7 @@ event_enable_count_probe(unsigned long ip, unsigned long parent_ip, void **_data | |||
| 2132 | return; | 2132 | return; |
| 2133 | 2133 | ||
| 2134 | /* Skip if the event is in a state we want to switch to */ | 2134 | /* Skip if the event is in a state we want to switch to */ |
| 2135 | if (data->enable == !(data->file->flags & FTRACE_EVENT_FL_SOFT_DISABLED)) | 2135 | if (data->enable == !(data->file->flags & EVENT_FILE_FL_SOFT_DISABLED)) |
| 2136 | return; | 2136 | return; |
| 2137 | 2137 | ||
| 2138 | if (data->count != -1) | 2138 | if (data->count != -1) |
| @@ -2793,7 +2793,7 @@ static __init void event_trace_self_tests(void) | |||
| 2793 | * If an event is already enabled, someone is using | 2793 | * If an event is already enabled, someone is using |
| 2794 | * it and the self test should not be on. | 2794 | * it and the self test should not be on. |
| 2795 | */ | 2795 | */ |
| 2796 | if (file->flags & FTRACE_EVENT_FL_ENABLED) { | 2796 | if (file->flags & EVENT_FILE_FL_ENABLED) { |
| 2797 | pr_warn("Enabled event during self test!\n"); | 2797 | pr_warn("Enabled event during self test!\n"); |
| 2798 | WARN_ON_ONCE(1); | 2798 | WARN_ON_ONCE(1); |
| 2799 | continue; | 2799 | continue; |
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index 203dd3750e91..319560a1af4b 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c | |||
| @@ -787,7 +787,7 @@ static void filter_disable(struct trace_event_file *file) | |||
| 787 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) | 787 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) |
| 788 | call->flags &= ~TRACE_EVENT_FL_FILTERED; | 788 | call->flags &= ~TRACE_EVENT_FL_FILTERED; |
| 789 | else | 789 | else |
| 790 | file->flags &= ~FTRACE_EVENT_FL_FILTERED; | 790 | file->flags &= ~EVENT_FILE_FL_FILTERED; |
| 791 | } | 791 | } |
| 792 | 792 | ||
| 793 | static void __free_filter(struct event_filter *filter) | 793 | static void __free_filter(struct event_filter *filter) |
| @@ -1669,7 +1669,7 @@ static inline void event_set_filtered_flag(struct trace_event_file *file) | |||
| 1669 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) | 1669 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) |
| 1670 | call->flags |= TRACE_EVENT_FL_FILTERED; | 1670 | call->flags |= TRACE_EVENT_FL_FILTERED; |
| 1671 | else | 1671 | else |
| 1672 | file->flags |= FTRACE_EVENT_FL_FILTERED; | 1672 | file->flags |= EVENT_FILE_FL_FILTERED; |
| 1673 | } | 1673 | } |
| 1674 | 1674 | ||
| 1675 | static inline void event_set_filter(struct trace_event_file *file, | 1675 | static inline void event_set_filter(struct trace_event_file *file, |
| @@ -1701,7 +1701,7 @@ event_set_no_set_filter_flag(struct trace_event_file *file) | |||
| 1701 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) | 1701 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) |
| 1702 | call->flags |= TRACE_EVENT_FL_NO_SET_FILTER; | 1702 | call->flags |= TRACE_EVENT_FL_NO_SET_FILTER; |
| 1703 | else | 1703 | else |
| 1704 | file->flags |= FTRACE_EVENT_FL_NO_SET_FILTER; | 1704 | file->flags |= EVENT_FILE_FL_NO_SET_FILTER; |
| 1705 | } | 1705 | } |
| 1706 | 1706 | ||
| 1707 | static inline void | 1707 | static inline void |
| @@ -1712,7 +1712,7 @@ event_clear_no_set_filter_flag(struct trace_event_file *file) | |||
| 1712 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) | 1712 | if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) |
| 1713 | call->flags &= ~TRACE_EVENT_FL_NO_SET_FILTER; | 1713 | call->flags &= ~TRACE_EVENT_FL_NO_SET_FILTER; |
| 1714 | else | 1714 | else |
| 1715 | file->flags &= ~FTRACE_EVENT_FL_NO_SET_FILTER; | 1715 | file->flags &= ~EVENT_FILE_FL_NO_SET_FILTER; |
| 1716 | } | 1716 | } |
| 1717 | 1717 | ||
| 1718 | static inline bool | 1718 | static inline bool |
| @@ -1720,7 +1720,7 @@ event_no_set_filter_flag(struct trace_event_file *file) | |||
| 1720 | { | 1720 | { |
| 1721 | struct trace_event_call *call = file->event_call; | 1721 | struct trace_event_call *call = file->event_call; |
| 1722 | 1722 | ||
| 1723 | if (file->flags & FTRACE_EVENT_FL_NO_SET_FILTER) | 1723 | if (file->flags & EVENT_FILE_FL_NO_SET_FILTER) |
| 1724 | return true; | 1724 | return true; |
| 1725 | 1725 | ||
| 1726 | if ((call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) && | 1726 | if ((call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) && |
diff --git a/kernel/trace/trace_events_trigger.c b/kernel/trace/trace_events_trigger.c index ccd6a2adc7ad..bb2cff8abe71 100644 --- a/kernel/trace/trace_events_trigger.c +++ b/kernel/trace/trace_events_trigger.c | |||
| @@ -438,12 +438,12 @@ static int trace_event_trigger_enable_disable(struct trace_event_file *file, | |||
| 438 | if (trigger_enable) { | 438 | if (trigger_enable) { |
| 439 | if (atomic_inc_return(&file->tm_ref) > 1) | 439 | if (atomic_inc_return(&file->tm_ref) > 1) |
| 440 | return ret; | 440 | return ret; |
| 441 | set_bit(FTRACE_EVENT_FL_TRIGGER_MODE_BIT, &file->flags); | 441 | set_bit(EVENT_FILE_FL_TRIGGER_MODE_BIT, &file->flags); |
| 442 | ret = trace_event_enable_disable(file, 1, 1); | 442 | ret = trace_event_enable_disable(file, 1, 1); |
| 443 | } else { | 443 | } else { |
| 444 | if (atomic_dec_return(&file->tm_ref) > 0) | 444 | if (atomic_dec_return(&file->tm_ref) > 0) |
| 445 | return ret; | 445 | return ret; |
| 446 | clear_bit(FTRACE_EVENT_FL_TRIGGER_MODE_BIT, &file->flags); | 446 | clear_bit(EVENT_FILE_FL_TRIGGER_MODE_BIT, &file->flags); |
| 447 | ret = trace_event_enable_disable(file, 0, 1); | 447 | ret = trace_event_enable_disable(file, 0, 1); |
| 448 | } | 448 | } |
| 449 | 449 | ||
| @@ -501,9 +501,9 @@ static void update_cond_flag(struct trace_event_file *file) | |||
| 501 | } | 501 | } |
| 502 | 502 | ||
| 503 | if (set_cond) | 503 | if (set_cond) |
| 504 | set_bit(FTRACE_EVENT_FL_TRIGGER_COND_BIT, &file->flags); | 504 | set_bit(EVENT_FILE_FL_TRIGGER_COND_BIT, &file->flags); |
| 505 | else | 505 | else |
| 506 | clear_bit(FTRACE_EVENT_FL_TRIGGER_COND_BIT, &file->flags); | 506 | clear_bit(EVENT_FILE_FL_TRIGGER_COND_BIT, &file->flags); |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | /** | 509 | /** |
| @@ -1063,9 +1063,9 @@ event_enable_trigger(struct event_trigger_data *data) | |||
| 1063 | struct enable_trigger_data *enable_data = data->private_data; | 1063 | struct enable_trigger_data *enable_data = data->private_data; |
| 1064 | 1064 | ||
| 1065 | if (enable_data->enable) | 1065 | if (enable_data->enable) |
| 1066 | clear_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &enable_data->file->flags); | 1066 | clear_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &enable_data->file->flags); |
| 1067 | else | 1067 | else |
| 1068 | set_bit(FTRACE_EVENT_FL_SOFT_DISABLED_BIT, &enable_data->file->flags); | 1068 | set_bit(EVENT_FILE_FL_SOFT_DISABLED_BIT, &enable_data->file->flags); |
| 1069 | } | 1069 | } |
| 1070 | 1070 | ||
| 1071 | static void | 1071 | static void |
| @@ -1077,7 +1077,7 @@ event_enable_count_trigger(struct event_trigger_data *data) | |||
| 1077 | return; | 1077 | return; |
| 1078 | 1078 | ||
| 1079 | /* Skip if the event is in a state we want to switch to */ | 1079 | /* Skip if the event is in a state we want to switch to */ |
| 1080 | if (enable_data->enable == !(enable_data->file->flags & FTRACE_EVENT_FL_SOFT_DISABLED)) | 1080 | if (enable_data->enable == !(enable_data->file->flags & EVENT_FILE_FL_SOFT_DISABLED)) |
| 1081 | return; | 1081 | return; |
| 1082 | 1082 | ||
| 1083 | if (data->count != -1) | 1083 | if (data->count != -1) |
