No. CSWITCH and related are all kernel flags. Since there is only one kernel which does write these events you need to post process them after capturing the data on your machine. At this level there is no process in isolation. For a context switch up
to three different processes (OldProcess, NewProcess, ReadyingProcess) do interact with each other. From a technical perspective you are asking the wrong question.
You want to profile only your process because you want to limit the amount of collected data? There is no easy way around this except to reconfigure xperf during your use case to collect the full info only during short periods of time which are of interest
to you.
Yours,
Alois Kraus