Adapt pids_with_hook example

Signed-off-by: chatgris <jboyer@af83.com>