Skip to content

Commit f6d2f58

Browse files
Alexey Dobriyantorvalds
authored andcommitted
proc: use macro in /proc/latency hook
->latency_record is defined as struct latency_record[LT_SAVECOUNT]; so use the same macro whie iterating. Link: http://lkml.kernel.org/r/20180627200534.GA18434@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 41089b6 commit f6d2f58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/proc/base.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ static int lstats_show_proc(struct seq_file *m, void *v)
463463
if (!task)
464464
return -ESRCH;
465465
seq_puts(m, "Latency Top version : v0.1\n");
466-
for (i = 0; i < 32; i++) {
466+
for (i = 0; i < LT_SAVECOUNT; i++) {
467467
struct latency_record *lr = &task->latency_record[i];
468468
if (lr->backtrace[0]) {
469469
int q;

0 commit comments

Comments
 (0)