[Pdbg] [PATCH v2 2/2] main: Address by linux CPU number with PPC host backend

Michael Neuling mikey at neuling.org
Sun Jul 15 16:42:20 AEST 2018


On Fri, 2018-07-13 at 16:34 +1000, Amitay Isaacs wrote:
> On Fri, 2018-07-13 at 16:21 +1000, Michael Neuling wrote:
> > With the PPC host backend used for HTM it's difficult to match up the
> > hardware numbers used pdbg with linux CPU numbers that people want to
> > affinitise a workload against (ie. taskset -c <cpu number>).
> > 
> > This adds a new "-l <cpu>" options so users can address the CPU to
> > target using linux CPU numbers. This is only available when using the
> > host backend on POWER machines.
> 
> Is -l mutually exlusive with -p?

Yes, they are mutually exclusive

> Or you expect "... -p 13 -l 1 ... " to work?

I would not expect that to work but I don't have an explicit check for it right
now.  We should probably add something.

> If they are mutually exclusive, we can just map l_list to p_list via
> pir_map().

I think it l_list would need to map to p_list, c_list and t_list... not justp_list.  

I end up just doing the mapping from l_list to thread/chip/processor sel.

Mikey


More information about the Pdbg mailing list