Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69033
b: refs/heads/master
c: 86d9560
h: refs/heads/master
i:
  69031: 9e77039
v: v3
  • Loading branch information
Ingo Molnar committed Oct 15, 2007
1 parent e2a52ea commit 3991e49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 9014623c0e3545be58a7f19f55793f6517bdc274
refs/heads/master: 86d9560cb6bd85986e98b4c63705daec94406bd4
11 changes: 9 additions & 2 deletions trunk/kernel/sched_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ print_cfs_rq_runtime_sum(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)

void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
{
s64 MIN_vruntime = -1, max_vruntime = -1, spread;
s64 MIN_vruntime = -1, min_vruntime, max_vruntime = -1,
spread, rq0_min_vruntime, spread0;
struct rq *rq = &per_cpu(runqueues, cpu);
struct sched_entity *last;
unsigned long flags;
Expand All @@ -121,22 +122,28 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)

P(fair_clock);
P(exec_clock);
P(min_vruntime);

spin_lock_irqsave(&rq->lock, flags);
if (cfs_rq->rb_leftmost)
MIN_vruntime = (__pick_next_entity(cfs_rq))->vruntime;
last = __pick_last_entity(cfs_rq);
if (last)
max_vruntime = last->vruntime;
min_vruntime = rq->cfs.min_vruntime;
rq0_min_vruntime = per_cpu(runqueues, 0).cfs.min_vruntime;
spin_unlock_irqrestore(&rq->lock, flags);
SEQ_printf(m, " .%-30s: %Ld\n", "MIN_vruntime",
(long long)MIN_vruntime);
SEQ_printf(m, " .%-30s: %Ld\n", "min_vruntime",
(long long)min_vruntime);
SEQ_printf(m, " .%-30s: %Ld\n", "max_vruntime",
(long long)max_vruntime);
spread = max_vruntime - MIN_vruntime;
SEQ_printf(m, " .%-30s: %Ld\n", "spread",
(long long)spread);
spread0 = min_vruntime - rq0_min_vruntime;
SEQ_printf(m, " .%-30s: %Ld\n", "spread0",
(long long)spread0);

P(wait_runtime);
P(wait_runtime_overruns);
Expand Down

0 comments on commit 3991e49

Please sign in to comment.