aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_output.c
diff options
context:
space:
mode:
authorJungseok Lee <jungseoklee85@gmail.com>2015-07-11 10:51:40 -0400
committerSteven Rostedt <rostedt@goodmis.org>2015-07-20 22:30:52 -0400
commitb838e1d96c613019095ba008afbee800977b0582 (patch)
tree15f8f4c15836f7617a91c167fe46be3cef63bb10 /kernel/trace/trace_output.c
parent82c355e81afbf16bc1ab379899a79eb66e2b7504 (diff)
tracing: Introduce two additional marks for delay
A fine granulity support for delay would be very useful when profiling VM logics, such as page allocation including page reclaim and memory compaction with function graph. Thus, this patch adds two additional marks with two changes. - An equal sign in mark selection function is removed to align code behavior with comments and documentation. - The function graph example related to delay in ftrace.txt is updated to cover all supported marks. Link: http://lkml.kernel.org/r/1436626300-1679-3-git-send-email-jungseoklee85@gmail.com Cc: Byungchul Park <byungchul.park@lge.com> Signed-off-by: Jungseok Lee <jungseoklee85@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_output.c')
-rw-r--r--kernel/trace/trace_output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index dfab253727dc..8e481a84aeea 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -496,6 +496,8 @@ static const struct trace_mark {
496 char sym; 496 char sym;
497} mark[] = { 497} mark[] = {
498 MARK(1000000000ULL , '$'), /* 1 sec */ 498 MARK(1000000000ULL , '$'), /* 1 sec */
499 MARK(100000000ULL , '@'), /* 100 msec */
500 MARK(10000000ULL , '*'), /* 10 msec */
499 MARK(1000000ULL , '#'), /* 1000 usecs */ 501 MARK(1000000ULL , '#'), /* 1000 usecs */
500 MARK(100000ULL , '!'), /* 100 usecs */ 502 MARK(100000ULL , '!'), /* 100 usecs */
501 MARK(10000ULL , '+'), /* 10 usecs */ 503 MARK(10000ULL , '+'), /* 10 usecs */
@@ -508,7 +510,7 @@ char trace_find_mark(unsigned long long d)
508 int size = ARRAY_SIZE(mark); 510 int size = ARRAY_SIZE(mark);
509 511
510 for (i = 0; i < size; i++) { 512 for (i = 0; i < size; i++) {
511 if (d >= mark[i].val) 513 if (d > mark[i].val)
512 break; 514 break;
513 } 515 }
514 516