Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
03c94fcf
Commit
03c94fcf
authored
Nov 17, 2014
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: perf: make @arc_pmu static global
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
f2e2013f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
arch/arc/kernel/perf_event.c
arch/arc/kernel/perf_event.c
+2
-5
No files found.
arch/arc/kernel/perf_event.c
View file @
03c94fcf
...
@@ -25,6 +25,8 @@ struct arc_pmu {
...
@@ -25,6 +25,8 @@ struct arc_pmu {
int
ev_hw_idx
[
PERF_COUNT_ARC_HW_MAX
];
int
ev_hw_idx
[
PERF_COUNT_ARC_HW_MAX
];
};
};
static
struct
arc_pmu
*
arc_pmu
;
/* read counter #idx; note that counter# != event# on ARC! */
/* read counter #idx; note that counter# != event# on ARC! */
static
uint64_t
arc_pmu_read_counter
(
int
idx
)
static
uint64_t
arc_pmu_read_counter
(
int
idx
)
{
{
...
@@ -47,7 +49,6 @@ static uint64_t arc_pmu_read_counter(int idx)
...
@@ -47,7 +49,6 @@ static uint64_t arc_pmu_read_counter(int idx)
static
void
arc_perf_event_update
(
struct
perf_event
*
event
,
static
void
arc_perf_event_update
(
struct
perf_event
*
event
,
struct
hw_perf_event
*
hwc
,
int
idx
)
struct
hw_perf_event
*
hwc
,
int
idx
)
{
{
struct
arc_pmu
*
arc_pmu
=
container_of
(
event
->
pmu
,
struct
arc_pmu
,
pmu
);
uint64_t
prev_raw_count
,
new_raw_count
;
uint64_t
prev_raw_count
,
new_raw_count
;
int64_t
delta
;
int64_t
delta
;
...
@@ -95,7 +96,6 @@ static int arc_pmu_cache_event(u64 config)
...
@@ -95,7 +96,6 @@ static int arc_pmu_cache_event(u64 config)
/* initializes hw_perf_event structure if event is supported */
/* initializes hw_perf_event structure if event is supported */
static
int
arc_pmu_event_init
(
struct
perf_event
*
event
)
static
int
arc_pmu_event_init
(
struct
perf_event
*
event
)
{
{
struct
arc_pmu
*
arc_pmu
=
container_of
(
event
->
pmu
,
struct
arc_pmu
,
pmu
);
struct
hw_perf_event
*
hwc
=
&
event
->
hw
;
struct
hw_perf_event
*
hwc
=
&
event
->
hw
;
int
ret
;
int
ret
;
...
@@ -183,8 +183,6 @@ static void arc_pmu_stop(struct perf_event *event, int flags)
...
@@ -183,8 +183,6 @@ static void arc_pmu_stop(struct perf_event *event, int flags)
static
void
arc_pmu_del
(
struct
perf_event
*
event
,
int
flags
)
static
void
arc_pmu_del
(
struct
perf_event
*
event
,
int
flags
)
{
{
struct
arc_pmu
*
arc_pmu
=
container_of
(
event
->
pmu
,
struct
arc_pmu
,
pmu
);
arc_pmu_stop
(
event
,
PERF_EF_UPDATE
);
arc_pmu_stop
(
event
,
PERF_EF_UPDATE
);
__clear_bit
(
event
->
hw
.
idx
,
arc_pmu
->
used_mask
);
__clear_bit
(
event
->
hw
.
idx
,
arc_pmu
->
used_mask
);
...
@@ -194,7 +192,6 @@ static void arc_pmu_del(struct perf_event *event, int flags)
...
@@ -194,7 +192,6 @@ static void arc_pmu_del(struct perf_event *event, int flags)
/* allocate hardware counter and optionally start counting */
/* allocate hardware counter and optionally start counting */
static
int
arc_pmu_add
(
struct
perf_event
*
event
,
int
flags
)
static
int
arc_pmu_add
(
struct
perf_event
*
event
,
int
flags
)
{
{
struct
arc_pmu
*
arc_pmu
=
container_of
(
event
->
pmu
,
struct
arc_pmu
,
pmu
);
struct
hw_perf_event
*
hwc
=
&
event
->
hw
;
struct
hw_perf_event
*
hwc
=
&
event
->
hw
;
int
idx
=
hwc
->
idx
;
int
idx
=
hwc
->
idx
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment