In runtime/perf.c, it should be a straightforward thing to detect that we're running in target-process mode (stap -c/-x), and interpret that as a request to bind the perf.* events only to that process. (One would pass a -1 cpu and a proper pid number to perf_event_create_kernel_counter.) OTOH, this could be an option at the probe point level, as in probe process(NNN).perf.* ?
In order to enjoy the tapset/perf.* aliasing for perfctr names, instead of process(...).perf*, the new probe points could be named perf.*.process("..."), relying on bug #14313's suffix-passthrough magic.
Add process("NAME") to perf probe. commit: 6a8fe809a8c