diff options
| author | 2025-12-24 14:50:56 +0200 | |
|---|---|---|
| committer | 2026-01-07 15:57:38 +0100 | |
| commit | 2a3a25336b1ba632a0a98249a7d4bbee454065aa (patch) | |
| tree | ed81215e281676f70f2b35c3bd6de0f75fb7bc00 /include/linux/reset/ssh:/git@git.zx2c4.com | |
| parent | tools/rtla: Consolidate -H/--house-keeping option parsing (diff) | |
tools/rtla: Deduplicate cgroup path opening code
Both set_pid_cgroup() and set_comm_cgroup() functions contain
identical code for opening the cgroup.procs file.
Extract this common code into a new helper function open_cgroup_procs()
to reduce code duplication and improve maintainability.
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Link: https://lore.kernel.org/r/20251224125058.1771519-1-costa.shul@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'include/linux/reset/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
