Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1261766 > unrolled thread
| Started by | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| First post | 2015-11-03 19:10 +0100 |
| Last post | 2015-11-03 19:10 +0100 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[for-next][PATCH 00/13] tracing: Minor updates and fixes for 4.4 Steven Rostedt <rostedt@goodmis.org> - 2015-11-03 19:10 +0100
[for-next][PATCH 11/13] ring-buffer: rb_event_is_commit() can return boolean Steven Rostedt <rostedt@goodmis.org> - 2015-11-03 19:10 +0100
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2015-11-03 19:10 +0100 |
| Subject | [for-next][PATCH 00/13] tracing: Minor updates and fixes for 4.4 |
| Message-ID | <qqObU-6gN-5@gated-at.bofh.it> |
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next
Head SHA1: c6650b2e57725abaa2e36e620d06fa576d26c21c
Chunyan Zhang (2):
tracing: Only benchmark the time tracepoints take if tracing is on
Sample: Trace_event: Correct the comments
Jiaxing Wang (1):
tracing: Update instance_rmdir() to use tracefs_remove_recursive
Li Bin (1):
recordmcount: x86: Assign a meaningful value to rel_type_nop
Steven Rostedt (Red Hat) (1):
tracing: Call on_each_cpu() when adding or removing single pids from set_event_pid
Yaowei Bai (8):
tracing: report_latency() in trace_sched_wakeup.c can return boolean
tracing: report_latency() in trace_irqsoff.c can return boolean
ring-buffer: rb_is_reader_page() can return boolean
ring_buffer: ring_buffer_empty{cpu}() can return boolean
ring-buffer: rb_per_cpu_empty() can return boolean
ring-buffer: rb_event_is_commit() can return boolean
tracing: is_legal_op() can return boolean
tracing: ftrace_event_is_function() can return boolean
----
include/linux/ring_buffer.h | 4 ++--
kernel/trace/ring_buffer.c | 20 ++++++++++----------
kernel/trace/trace.c | 2 +-
kernel/trace/trace.h | 2 +-
kernel/trace/trace_benchmark.c | 2 +-
kernel/trace/trace_events.c | 13 +++++++------
kernel/trace/trace_events_filter.c | 8 ++++----
kernel/trace/trace_export.c | 2 +-
kernel/trace/trace_irqsoff.c | 8 ++++----
kernel/trace/trace_sched_wakeup.c | 8 ++++----
samples/trace_events/trace-events-sample.h | 6 +++---
scripts/recordmcount.c | 2 ++
12 files changed, 40 insertions(+), 37 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2015-11-03 19:10 +0100 |
| Subject | [for-next][PATCH 11/13] ring-buffer: rb_event_is_commit() can return boolean |
| Message-ID | <qqObV-6gN-49@gated-at.bofh.it> |
| In reply to | #1261766 |
From: Yaowei Bai <bywxiaobai@163.com>
Make rb_event_is_commit() return bool to improve readability
due to this particular function only using either one or zero as its
return value.
No functional change.
Link: http://lkml.kernel.org/r/1443537816-5788-7-git-send-email-bywxiaobai@163.com
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
kernel/trace/ring_buffer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index a22878923a30..75f1d05ea82d 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -2270,7 +2270,7 @@ rb_add_time_stamp(struct ring_buffer_event *event, u64 delta)
return skip_time_extend(event);
}
-static inline int rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
+static inline bool rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
struct ring_buffer_event *event);
/**
@@ -2498,7 +2498,7 @@ static inline void rb_event_discard(struct ring_buffer_event *event)
event->time_delta = 1;
}
-static inline int
+static inline bool
rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
struct ring_buffer_event *event)
{
--
2.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web