tracing: Apply upper limit of pid to prevent buffer overflow