Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
0f4f067
Breadcrumbs
linux
/
arch
/
arm
/
include
/
asm
/
pmu.h
Copy path
Blame
Blame
Latest commit
History
History
75 lines (63 loc) · 1.65 KB
Breadcrumbs
linux
/
arch
/
arm
/
include
/
asm
/
pmu.h
Top
File metadata and controls
Code
Blame
75 lines (63 loc) · 1.65 KB
Raw
/* * linux/arch/arm/include/asm/pmu.h * * Copyright (C) 2009 picoChip Designs Ltd, Jamie Iles * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #ifndef __ARM_PMU_H__ #define __ARM_PMU_H__ #ifdef CONFIG_CPU_HAS_PMU struct pmu_irqs { const int *irqs; int num_irqs; }; /** * reserve_pmu() - reserve the hardware performance counters * * Reserve the hardware performance counters in the system for exclusive use. * The 'struct pmu_irqs' for the system is returned on success, ERR_PTR() * encoded error on failure. */ extern const struct pmu_irqs * reserve_pmu(void); /** * release_pmu() - Relinquish control of the performance counters * * Release the performance counters and allow someone else to use them. * Callers must have disabled the counters and released IRQs before calling * this. The 'struct pmu_irqs' returned from reserve_pmu() must be passed as * a cookie. */ extern int release_pmu(const struct pmu_irqs *irqs); /** * init_pmu() - Initialise the PMU. * * Initialise the system ready for PMU enabling. This should typically set the * IRQ affinity and nothing else. The users (oprofile/perf events etc) will do * the actual hardware initialisation. */ extern int init_pmu(void); #else /* CONFIG_CPU_HAS_PMU */ static inline const struct pmu_irqs * reserve_pmu(void) { return ERR_PTR(-ENODEV); } static inline int release_pmu(const struct pmu_irqs *irqs) { return -ENODEV; } static inline int init_pmu(void) { return -ENODEV; } #endif /* CONFIG_CPU_HAS_PMU */ #endif /* __ARM_PMU_H__ */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
You can’t perform that action at this time.