tools/perf/util/drm_pmu.h
Source file repositories/reference/linux-study-clean/tools/perf/util/drm_pmu.h
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/drm_pmu.h- Extension
.h- Size
- 1405 bytes
- Lines
- 40
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
pmu.hstdbool.h
Detected Declarations
struct list_headstruct perf_thread_map
Annotated Snippet
#ifndef __DRM_PMU_H
#define __DRM_PMU_H
/*
* Linux DRM clients expose information through usage stats as documented in
* Documentation/gpu/drm-usage-stats.rst (available online at
* https://docs.kernel.org/gpu/drm-usage-stats.html). This is a tool like PMU
* that exposes DRM information.
*/
#include "pmu.h"
#include <stdbool.h>
struct list_head;
struct perf_thread_map;
void drm_pmu__exit(struct perf_pmu *pmu);
bool drm_pmu__have_event(const struct perf_pmu *pmu, const char *name);
int drm_pmu__for_each_event(const struct perf_pmu *pmu, void *state, pmu_event_callback cb);
size_t drm_pmu__num_events(const struct perf_pmu *pmu);
int drm_pmu__config_terms(const struct perf_pmu *pmu,
struct perf_event_attr *attr,
struct parse_events_terms *terms,
struct parse_events_error *err);
int drm_pmu__check_alias(const struct perf_pmu *pmu, struct parse_events_terms *terms,
struct perf_pmu_info *info, struct parse_events_error *err);
bool perf_pmu__is_drm(const struct perf_pmu *pmu);
bool evsel__is_drm(const struct evsel *evsel);
int perf_pmus__read_drm_pmus(struct list_head *pmus);
int evsel__drm_pmu_open(struct evsel *evsel,
struct perf_thread_map *threads,
int start_cpu_map_idx, int end_cpu_map_idx);
int evsel__drm_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread);
#endif /* __DRM_PMU_H */
Annotation
- Immediate include surface: `pmu.h`, `stdbool.h`.
- Detected declarations: `struct list_head`, `struct perf_thread_map`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.