Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91055
b: refs/heads/master
c: 19fb518
h: refs/heads/master
i:
  91053: 0231182
  91051: 1fb612c
  91047: 05eeed8
  91039: 20c1496
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Apr 19, 2008
1 parent 40918d8 commit ac8545b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50df5d6aea6694ca481b8005900401e8c95c2603
refs/heads/master: 19fb518c2a0c5d88ed22bba7083b7e7bc2a9c231
27 changes: 17 additions & 10 deletions trunk/kernel/latencytop.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,24 @@ account_global_scheduler_latency(struct task_struct *tsk, struct latency_record
return;

for (i = 0; i < MAXLR; i++) {
int q;
int same = 1;
int q, same = 1;

/* Nothing stored: */
if (!latency_record[i].backtrace[0]) {
if (firstnonnull > i)
firstnonnull = i;
continue;
}
for (q = 0 ; q < LT_BACKTRACEDEPTH ; q++) {
if (latency_record[i].backtrace[q] !=
lat->backtrace[q])
unsigned long record = lat->backtrace[q];

if (latency_record[i].backtrace[q] != record) {
same = 0;
if (same && lat->backtrace[q] == 0)
break;
if (same && lat->backtrace[q] == ULONG_MAX)
}

/* 0 and ULONG_MAX entries mean end of backtrace: */
if (record == 0 || record == ULONG_MAX)
break;
}
if (same) {
Expand Down Expand Up @@ -143,14 +146,18 @@ account_scheduler_latency(struct task_struct *tsk, int usecs, int inter)
for (i = 0; i < LT_SAVECOUNT ; i++) {
struct latency_record *mylat;
int same = 1;

mylat = &tsk->latency_record[i];
for (q = 0 ; q < LT_BACKTRACEDEPTH ; q++) {
if (mylat->backtrace[q] !=
lat.backtrace[q])
unsigned long record = lat.backtrace[q];

if (mylat->backtrace[q] != record) {
same = 0;
if (same && lat.backtrace[q] == 0)
break;
if (same && lat.backtrace[q] == ULONG_MAX)
}

/* 0 and ULONG_MAX entries mean end of backtrace: */
if (record == 0 || record == ULONG_MAX)
break;
}
if (same) {
Expand Down

0 comments on commit ac8545b

Please sign in to comment.