I'm trying to make a sampling profiler, that reads the Program Counter's value at each timer interrupt. How can I get pointer of task_struct type to the last active process, so i can copy its thread.eip value. I would greatly appreciate your help!