Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1323571

Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to show current bandwidths

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to show current bandwidths
Date 2016-02-01 23:20 +0100
Message-ID <qXuZc-112-9@gated-at.bofh.it> (permalink)
References <qXtgK-8eB-7@gated-at.bofh.it> <qXtqq-8iB-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Feb 01, 2016 at 03:26:28PM -0500, Steven Rostedt wrote:
> +static void *dl_next(struct seq_file *m, void *v, loff_t *pos)
> +{
> +	long cpu = (long)v;
> +
> +	/* to keep from returning zero, v is always cpu + 1 */
> +	cpu--;
> +	cpu = cpumask_next(cpu, cpu_possible_mask);
> +
> +	(*pos)++;
> +
> +	if (cpu >= num_possible_cpus())

And that wants to be: nr_cpu_ids, imagine the bitmap having holes in.

> +		cpu = 0;
> +	else
> +		cpu++;
> +
> +	return (void *)cpu;
> +}

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC][PATCH 0/4] sched: Display deadline bandwidth and other SCHED_DEBUG clean up Steven Rostedt <rostedt@goodmis.org> - 2016-02-01 21:30 +0100
  [RFC][PATCH 1/4] sched: Move sched_feature file setup into debug.c Steven Rostedt <rostedt@goodmis.org> - 2016-02-01 21:40 +0100
  [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to show current bandwidths Steven Rostedt <rostedt@goodmis.org> - 2016-02-01 21:40 +0100
    Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to  show current bandwidths Peter Zijlstra <peterz@infradead.org> - 2016-02-01 23:20 +0100
      Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to  show current bandwidths Steven Rostedt <rostedt@goodmis.org> - 2016-02-01 23:40 +0100
        Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to  show current bandwidths Peter Zijlstra <peterz@infradead.org> - 2016-02-01 23:50 +0100
          Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to  show current bandwidths Ingo Molnar <mingo@kernel.org> - 2016-02-03 11:20 +0100
            Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to  show current bandwidths Steven Rostedt <rostedt@goodmis.org> - 2016-02-03 14:30 +0100
    Re: [RFC][PATCH 4/4] sched: Add debugfs/sched/deadline_bw file to  show current bandwidths Peter Zijlstra <peterz@infradead.org> - 2016-02-01 23:20 +0100
  [RFC][PATCH 2/4] sched: Move sched_domain_sysctl to debug.c Steven Rostedt <rostedt@goodmis.org> - 2016-02-01 21:40 +0100
  [RFC][PATCH 3/4] sched: Move sched_domain_debug into debug.c Steven Rostedt <rostedt@goodmis.org> - 2016-02-01 21:40 +0100

csiph-web