What is saved at x86_64 process switch time?
What is saved at process context switch time? Obvious stuff like the contents of the GPRs, page table, instruction pointer; what else?
Specifically, are performance counters (for example) saved/restored during a process switch?
If I want to count L3 cache misses for a certain long running application, will the associated performance counter show only L3 misses for the application, or will it show all L3 misses during the time the application was running? (i.e. including L3 misses for other processes)
Where in the source code is process context saved during a switch?
Is there a good description of Linux context switch that explains the details?
|