Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-31 Thread Fenghua Yu
On Thu, Mar 30, 2017 at 04:59:47PM +0200, Jiri Olsa wrote: > On Wed, Mar 29, 2017 at 06:16:00PM +0200, Jiri Olsa wrote: > > On Wed, Mar 29, 2017 at 09:08:26AM -0700, Fenghua Yu wrote: > > > On Wed, Mar 29, 2017 at 05:09:48PM +0200, Jiri Olsa wrote: > > > > While playing with the resctrl interface I

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-31 Thread Jiri Olsa
On Fri, Mar 31, 2017 at 11:15:22AM +0200, Thomas Gleixner wrote: > On Wed, 29 Mar 2017, Fenghua Yu wrote: > > > static int rdtgroup_cpus_show(struct kernfs_open_file *of, > > > - struct seq_file *s, void *v) > > > + struct seq_file *s, void *v, > > > +

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-31 Thread Fenghua Yu
On Fri, Mar 31, 2017 at 10:47:52AM +0200, Thomas Gleixner wrote: > On Wed, 29 Mar 2017, Fenghua Yu wrote: > > On Wed, Mar 29, 2017 at 05:09:48PM +0200, Jiri Olsa wrote: > > > While playing with the resctrl interface I found it much > > > easier to deal with cpumask list rather than just regular > >

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-31 Thread Fenghua Yu
On Fri, Mar 31, 2017 at 11:15:22AM +0200, Thomas Gleixner wrote: > On Wed, 29 Mar 2017, Fenghua Yu wrote: > > > static int rdtgroup_cpus_show(struct kernfs_open_file *of, > > > - struct seq_file *s, void *v) > > > + struct seq_file *s, void *v, > > > +

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-31 Thread Thomas Gleixner
On Wed, 29 Mar 2017, Fenghua Yu wrote: > > static int rdtgroup_cpus_show(struct kernfs_open_file *of, > > - struct seq_file *s, void *v) > > + struct seq_file *s, void *v, > > + unsigned long flags) > > { > > + const char *

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-31 Thread Thomas Gleixner
On Wed, 29 Mar 2017, Fenghua Yu wrote: > On Wed, Mar 29, 2017 at 05:09:48PM +0200, Jiri Olsa wrote: > > While playing with the resctrl interface I found it much > > easier to deal with cpumask list rather than just regular > > cpumask. > > Could you please explain specifically why and when it's ea

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-30 Thread Jiri Olsa
On Wed, Mar 29, 2017 at 06:16:00PM +0200, Jiri Olsa wrote: > On Wed, Mar 29, 2017 at 09:08:26AM -0700, Fenghua Yu wrote: > > On Wed, Mar 29, 2017 at 05:09:48PM +0200, Jiri Olsa wrote: > > > While playing with the resctrl interface I found it much > > > easier to deal with cpumask list rather than j

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-29 Thread Jiri Olsa
On Wed, Mar 29, 2017 at 09:08:26AM -0700, Fenghua Yu wrote: > On Wed, Mar 29, 2017 at 05:09:48PM +0200, Jiri Olsa wrote: > > While playing with the resctrl interface I found it much > > easier to deal with cpumask list rather than just regular > > cpumask. > > Could you please explain specifically

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-29 Thread Fenghua Yu
On Wed, Mar 29, 2017 at 05:09:48PM +0200, Jiri Olsa wrote: > While playing with the resctrl interface I found it much > easier to deal with cpumask list rather than just regular > cpumask. Could you please explain specifically why and when it's easier to deal with cpumask list? In programming case