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>
This commit is contained in:

committed by
Steven Rostedt

parent
82c355e81a
commit
b838e1d96c
@@ -496,6 +496,8 @@ static const struct trace_mark {
|
||||
char sym;
|
||||
} mark[] = {
|
||||
MARK(1000000000ULL , '$'), /* 1 sec */
|
||||
MARK(100000000ULL , '@'), /* 100 msec */
|
||||
MARK(10000000ULL , '*'), /* 10 msec */
|
||||
MARK(1000000ULL , '#'), /* 1000 usecs */
|
||||
MARK(100000ULL , '!'), /* 100 usecs */
|
||||
MARK(10000ULL , '+'), /* 10 usecs */
|
||||
@@ -508,7 +510,7 @@ char trace_find_mark(unsigned long long d)
|
||||
int size = ARRAY_SIZE(mark);
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
if (d >= mark[i].val)
|
||||
if (d > mark[i].val)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user