Home
last modified time | relevance | path

Searched refs:cspmu (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/perf/arm_cspmu/
Darm_cspmu.c160 static inline bool supports_cycle_counter(const struct arm_cspmu *cspmu) in supports_cycle_counter() argument
162 return (cspmu->pmcfgr & PMCFGR_CC); in supports_cycle_counter()
166 static inline u32 counter_size(const struct arm_cspmu *cspmu) in counter_size() argument
168 return FIELD_GET(PMCFGR_SIZE, cspmu->pmcfgr) + 1; in counter_size()
172 static inline u64 counter_mask(const struct arm_cspmu *cspmu) in counter_mask() argument
174 return GENMASK_ULL(counter_size(cspmu) - 1, 0); in counter_mask()
178 static inline bool use_64b_counter_reg(const struct arm_cspmu *cspmu) in use_64b_counter_reg() argument
180 return (counter_size(cspmu) > 32); in use_64b_counter_reg()
200 arm_cspmu_get_event_attrs(const struct arm_cspmu *cspmu) in arm_cspmu_get_event_attrs() argument
204 attrs = devm_kmemdup(cspmu->dev, arm_cspmu_event_attrs, in arm_cspmu_get_event_attrs()
[all …]
Dnvidia_cspmu.c28 #define to_nv_cspmu_ctx(cspmu) ((struct nv_cspmu_ctx *)(cspmu->impl.ctx)) argument
212 nv_cspmu_get_event_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_event_attrs() argument
214 const struct nv_cspmu_ctx *ctx = to_nv_cspmu_ctx(cspmu); in nv_cspmu_get_event_attrs()
220 nv_cspmu_get_format_attrs(const struct arm_cspmu *cspmu) in nv_cspmu_get_format_attrs() argument
222 const struct nv_cspmu_ctx *ctx = to_nv_cspmu_ctx(cspmu); in nv_cspmu_get_format_attrs()
228 nv_cspmu_get_name(const struct arm_cspmu *cspmu) in nv_cspmu_get_name() argument
230 const struct nv_cspmu_ctx *ctx = to_nv_cspmu_ctx(cspmu); in nv_cspmu_get_name()
325 static char *nv_cspmu_format_name(const struct arm_cspmu *cspmu, in nv_cspmu_format_name() argument
329 struct device *dev = cspmu->dev; in nv_cspmu_format_name()
335 const int cpu = cpumask_first(&cspmu->associated_cpus); in nv_cspmu_format_name()
[all …]
Darm_cspmu.h91 struct attribute **(*get_event_attrs)(const struct arm_cspmu *cspmu);
93 struct attribute **(*get_format_attrs)(const struct arm_cspmu *cspmu);
95 const char *(*get_identifier)(const struct arm_cspmu *cspmu);
97 const char *(*get_name)(const struct arm_cspmu *cspmu);
Dnvidia_cspmu.h15 int nv_cspmu_init_ops(struct arm_cspmu *cspmu);