mm: mmap_lock: remove redundant "\n" in TP_printk
Subsystems (3)
PATCH v2 1/2 mm: mmap_lock: remove redundant "\n" in TP_printk
Ftrace core will add "\n" automatically on print. "\n" in TP_printk will create blank line, so remove it.
Signed-off-by Gang Li <[email protected]>
--- include/trace/events/mmap_lock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/trace/events/mmap_lock.h +3 -3
@@ -32,7 +32,7 @@ TRACE_EVENT_FN(mmap_lock_start_locking, ),TP_printk ( -"mm=%p memcg_path=%s write=%s\n" , +"mm=%p memcg_path=%s write=%s" , __entry->mm,__get_str (memcg_path), __entry->write ? "true" : "false"
@@ -63,7 +63,7 @@ TRACE_EVENT_FN(mmap_lock_acquire_returned, ), TP_printk( - "mm=%p memcg_path=%s write=%s success=%s\n", + "mm=%p memcg_path=%s write=%s success=%s", __entry->mm, __get_str(memcg_path), __entry->write ? "true" : "false",
@@ -92,7 +92,7 @@ TRACE_EVENT_FN(mmap_lock_released, ),TP_printk ( -"mm=%p memcg_path=%s write=%s\n" , +"mm=%p memcg_path=%s write=%s" , __entry->mm,__get_str (memcg_path), __entry->write ? "true" : "false"
Signature · 1 line
2.20.1
Quoted 3 lines · On Sat, 9 Oct 2021 15:11:05 +0800 Gang Li <[email protected]> wrote:
Ftrace core will add "\n" automatically on print. "\n" in
TP_printkwill create blank line, so remove it.
Yes, thank you!
Reviewed-by Steven Rostedt (VMware) <[email protected]>
-- Steve
Quoted 36 lines
Signed-off-by Gang Li <[email protected]>--- include/trace/events/mmap_lock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/trace/events/mmap_lock.h +3
-3@@ -32,7 +32,7 @@ TRACE_EVENT_FN(mmap_lock_start_locking, ),TP_printk ( -"mm=%p memcg_path=%s write=%s\n" , +"mm=%p memcg_path=%s write=%s" , __entry->mm,__get_str (memcg_path), __entry->write ? "true" : "false"@@ -63,7 +63,7 @@ TRACE_EVENT_FN(mmap_lock_acquire_returned, ), TP_printk( - "mm=%p memcg_path=%s write=%s success=%s\n", + "mm=%p memcg_path=%s write=%s success=%s", __entry->mm, __get_str(memcg_path), __entry->write ? "true" : "false",@@ -92,7 +92,7 @@ TRACE_EVENT_FN(mmap_lock_released, ),TP_printk ( -"mm=%p memcg_path=%s write=%s\n" , +"mm=%p memcg_path=%s write=%s" , __entry->mm,__get_str (memcg_path), __entry->write ? "true" : "false"
Quoted 4 lines · Gang Li
Ftrace core will add "\n" automatically on print. "\n" in
TP_printkwill create blank line, so remove it.Signed-off-by Gang Li <[email protected]>
Acked-by Vlastimil Babka <[email protected]>
Quoted 36 lines
--- include/trace/events/mmap_lock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/trace/events/mmap_lock.h +3
-3@@ -32,7 +32,7 @@ TRACE_EVENT_FN(mmap_lock_start_locking, ),TP_printk ( -"mm=%p memcg_path=%s write=%s\n" , +"mm=%p memcg_path=%s write=%s" , __entry->mm,__get_str (memcg_path), __entry->write ? "true" : "false"@@ -63,7 +63,7 @@ TRACE_EVENT_FN(mmap_lock_acquire_returned, ), TP_printk( - "mm=%p memcg_path=%s write=%s success=%s\n", + "mm=%p memcg_path=%s write=%s success=%s", __entry->mm, __get_str(memcg_path), __entry->write ? "true" : "false",@@ -92,7 +92,7 @@ TRACE_EVENT_FN(mmap_lock_released, ),TP_printk ( -"mm=%p memcg_path=%s write=%s\n" , +"mm=%p memcg_path=%s write=%s" , __entry->mm,__get_str (memcg_path), __entry->write ? "true" : "false"