add support for the pid context if present

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>