Re: Regarding Linux kernel SMP and task switching CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 12, 2020 at 7:00 AM CVS <cvs268@xxxxxxxxx> wrote:
>
> > are there platform specific functions that are called to detect change ?
> What is it that you wish to do with this?

I am doing porting work; I would like to be able to update
mm_struct->context when a task migrates to another CPU.

Another related question to this topic is:
can the same mm_struct be used by two tasks running each on a different CPU ?
if yes, I would probably need to make mm_struct->context an array so
that it can hold information for each CPU.

>
> - Are you thinking of modifying the thread migration logic before a
> thread is migrated?
> - Are you looking to trace such thread migrations across CPUs after they happen?
> - Something else?...
>
> regards
> CVS

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux