Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1435687 > unrolled thread
| Started by | Daniel Bristot de Oliveira <bristot@redhat.com> |
|---|---|
| First post | 2016-07-02 01:50 +0200 |
| Last post | 2016-07-02 01:50 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/4] tracing: printk:console fix and __get_str() cleanup Daniel Bristot de Oliveira <bristot@redhat.com> - 2016-07-02 01:50 +0200
[PATCH 1/4] tracing: Use outer () on __get_str() definition Daniel Bristot de Oliveira <bristot@redhat.com> - 2016-07-02 01:50 +0200
| From | Daniel Bristot de Oliveira <bristot@redhat.com> |
|---|---|
| Date | 2016-07-02 01:50 +0200 |
| Subject | [PATCH 0/4] tracing: printk:console fix and __get_str() cleanup |
| Message-ID | <rQgm6-4uy-13@gated-at.bofh.it> |
This patch series fixes a problem on printk:console tracepoint that prints a blank line in the trace output after each printk message that finishes with '\n'. It also does some cleanup on __get_str() usage, that was found while fixing the printk:console tracepoint. Daniel Bristot de Oliveira (4): tracing: Use outer () on __get_str() definition tracing, RAS: Cleanup on __get_str() usage tracing: Use __get_str() when manipulating strings printk, tracing: Avoiding unneeded blank lines fs/nfs/nfs4trace.h | 4 ++-- fs/nfs/nfstrace.h | 4 ++-- include/ras/ras_event.h | 4 ++-- include/trace/events/printk.h | 12 ++++++++++-- include/trace/perf.h | 2 +- include/trace/trace_events.h | 2 +- 6 files changed, 18 insertions(+), 10 deletions(-) -- 2.7.4
[toc] | [next] | [standalone]
| From | Daniel Bristot de Oliveira <bristot@redhat.com> |
|---|---|
| Date | 2016-07-02 01:50 +0200 |
| Subject | [PATCH 1/4] tracing: Use outer () on __get_str() definition |
| Message-ID | <rQgm6-4uy-25@gated-at.bofh.it> |
| In reply to | #1435687 |
__get_str(str)'s definition includes a (char *) operator overloading that is not protected with outer (). This patch adds () around __get_str()'s definition, enabling some code cleanup. Suggested-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com> Reviewed-by: Steven Rostedt <rostedt@goodmis.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: linux-kernel@vger.kernel.org --- include/trace/perf.h | 2 +- include/trace/trace_events.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/perf.h b/include/trace/perf.h index 26486fc..7144550 100644 --- a/include/trace/perf.h +++ b/include/trace/perf.h @@ -15,7 +15,7 @@ ((__entry->__data_loc_##field >> 16) & 0xffff) #undef __get_str -#define __get_str(field) (char *)__get_dynamic_array(field) +#define __get_str(field) ((char *)__get_dynamic_array(field)) #undef __get_bitmask #define __get_bitmask(field) (char *)__get_dynamic_array(field) diff --git a/include/trace/trace_events.h b/include/trace/trace_events.h index 170c93b..427e4aa 100644 --- a/include/trace/trace_events.h +++ b/include/trace/trace_events.h @@ -256,7 +256,7 @@ TRACE_MAKE_SYSTEM_STR(); ((__entry->__data_loc_##field >> 16) & 0xffff) #undef __get_str -#define __get_str(field) (char *)__get_dynamic_array(field) +#define __get_str(field) ((char *)__get_dynamic_array(field)) #undef __get_bitmask #define __get_bitmask(field) \ -- 2.7.4
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web