perf target: Separate parse_uid into its own function
authorIan Rogers <irogers@google.com>
Wed, 4 Jun 2025 17:45:36 +0000 (10:45 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 9 Jun 2025 18:18:17 +0000 (11:18 -0700)
commit5ddf4c3a17dc499fcbaf35692bc894340062dee8
treeb9f1e57284a79c97809a7ff7b2f59ff043e827be
parent8b99e2f7a95297da80b0b7167a8c8327b65c019e
perf target: Separate parse_uid into its own function

Allow parse_uid to be called without a struct target. Rather than have
two errors, remove TARGET_ERRNO__USER_NOT_FOUND and use
TARGET_ERRNO__INVALID_UID as the handling is identical.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250604174545.2853620-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/target.c
tools/perf/util/target.h