Skip to content

fdinfo: Add fops flag to allow CAP_PERFMON to see fdinfo#1315

Open
vfsci-bot[bot] wants to merge 1 commit intovfs.base.cifrom
pw/1089472/vfs.base.ci
Open

fdinfo: Add fops flag to allow CAP_PERFMON to see fdinfo#1315
vfsci-bot[bot] wants to merge 1 commit intovfs.base.cifrom
pw/1089472/vfs.base.ci

Conversation

@vfsci-bot
Copy link
Copy Markdown

@vfsci-bot vfsci-bot Bot commented May 4, 2026

Series: https://patchwork.kernel.org/project/linux-fsdevel/list/?series=1089472
Submitter: David Francis
Version: 1
Patches: 1/1
Message-ID: <20260504191429.1770840-1-David.Francis@amd.com>
Base: vfs.base.ci
Lore: https://lore.kernel.org/linux-fsdevel/20260504191429.1770840-1-David.Francis@amd.com


Automated by ml2pr

We want some GPU information to be publicly available to all
processes for basic system-wide profiling (think GPU versions
of top).

This information is available in fdinfo and not easily exposed
by other interfaces.

Allow processes with CAP_PERFMON capability to
- read /proc/<pid>/fd
- follow symlinks in /proc/<pid>/fd, but only if that file has
new file operations flag FOP_PERFMON_FDINFO
- read /proc/<pid>/fdinfo
- read /proc/<pid>/fdinfo/<fd>, but only if that file has
FOP_PERFMON_FDINFO

Signed-off-by: David Francis <David.Francis@amd.com>
Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant