diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-11 07:45:51 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-11 09:45:53 -0500 |
commit | 01b2838c4298c5e0d30b4993c195ac34dd9df61e (patch) | |
tree | 56a526fb72bd068eb4e06aa79a7569e6afb4138a /include | |
parent | 5c92d12411dfe5f0f3d1b1c1e2f756245e6f7249 (diff) |
perf counters: consolidate hw_perf save/restore APIs
Impact: cleanup
Rename them to better match up the usual IRQ disable/enable APIs:
hw_perf_disable_all() => hw_perf_save_disable()
hw_perf_restore_ctrl() => hw_perf_restore()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_counter.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 9a1713a1be27..68f6e3ad531f 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -67,7 +67,7 @@ enum perf_counter_record_type { | |||
67 | * Hardware event to monitor via a performance monitoring counter: | 67 | * Hardware event to monitor via a performance monitoring counter: |
68 | */ | 68 | */ |
69 | struct perf_counter_hw_event { | 69 | struct perf_counter_hw_event { |
70 | u64 type; | 70 | s64 type; |
71 | 71 | ||
72 | u64 irq_period; | 72 | u64 irq_period; |
73 | u32 record_type; | 73 | u32 record_type; |
@@ -206,8 +206,8 @@ extern void perf_counter_task_tick(struct task_struct *task, int cpu); | |||
206 | extern void perf_counter_init_task(struct task_struct *task); | 206 | extern void perf_counter_init_task(struct task_struct *task); |
207 | extern void perf_counter_notify(struct pt_regs *regs); | 207 | extern void perf_counter_notify(struct pt_regs *regs); |
208 | extern void perf_counter_print_debug(void); | 208 | extern void perf_counter_print_debug(void); |
209 | extern void hw_perf_restore_ctrl(u64 ctrl); | 209 | extern u64 hw_perf_save_disable(void); |
210 | extern u64 hw_perf_disable_all(void); | 210 | extern void hw_perf_restore(u64 ctrl); |
211 | extern void atomic64_counter_set(struct perf_counter *counter, u64 val64); | 211 | extern void atomic64_counter_set(struct perf_counter *counter, u64 val64); |
212 | extern u64 atomic64_counter_read(struct perf_counter *counter); | 212 | extern u64 atomic64_counter_read(struct perf_counter *counter); |
213 | 213 | ||
@@ -221,8 +221,8 @@ perf_counter_task_tick(struct task_struct *task, int cpu) { } | |||
221 | static inline void perf_counter_init_task(struct task_struct *task) { } | 221 | static inline void perf_counter_init_task(struct task_struct *task) { } |
222 | static inline void perf_counter_notify(struct pt_regs *regs) { } | 222 | static inline void perf_counter_notify(struct pt_regs *regs) { } |
223 | static inline void perf_counter_print_debug(void) { } | 223 | static inline void perf_counter_print_debug(void) { } |
224 | static inline void hw_perf_restore_ctrl(u64 ctrl) { } | 224 | static inline void hw_perf_restore(u64 ctrl) { } |
225 | static inline u64 hw_perf_disable_all(void) { return 0; } | 225 | static inline u64 hw_perf_save_disable(void) { return 0; } |
226 | #endif | 226 | #endif |
227 | 227 | ||
228 | #endif /* _LINUX_PERF_COUNTER_H */ | 228 | #endif /* _LINUX_PERF_COUNTER_H */ |