aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-11 07:45:51 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-11 09:45:53 -0500
commit01b2838c4298c5e0d30b4993c195ac34dd9df61e (patch)
tree56a526fb72bd068eb4e06aa79a7569e6afb4138a /include
parent5c92d12411dfe5f0f3d1b1c1e2f756245e6f7249 (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.h10
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 */
69struct perf_counter_hw_event { 69struct 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);
206extern void perf_counter_init_task(struct task_struct *task); 206extern void perf_counter_init_task(struct task_struct *task);
207extern void perf_counter_notify(struct pt_regs *regs); 207extern void perf_counter_notify(struct pt_regs *regs);
208extern void perf_counter_print_debug(void); 208extern void perf_counter_print_debug(void);
209extern void hw_perf_restore_ctrl(u64 ctrl); 209extern u64 hw_perf_save_disable(void);
210extern u64 hw_perf_disable_all(void); 210extern void hw_perf_restore(u64 ctrl);
211extern void atomic64_counter_set(struct perf_counter *counter, u64 val64); 211extern void atomic64_counter_set(struct perf_counter *counter, u64 val64);
212extern u64 atomic64_counter_read(struct perf_counter *counter); 212extern u64 atomic64_counter_read(struct perf_counter *counter);
213 213
@@ -221,8 +221,8 @@ perf_counter_task_tick(struct task_struct *task, int cpu) { }
221static inline void perf_counter_init_task(struct task_struct *task) { } 221static inline void perf_counter_init_task(struct task_struct *task) { }
222static inline void perf_counter_notify(struct pt_regs *regs) { } 222static inline void perf_counter_notify(struct pt_regs *regs) { }
223static inline void perf_counter_print_debug(void) { } 223static inline void perf_counter_print_debug(void) { }
224static inline void hw_perf_restore_ctrl(u64 ctrl) { } 224static inline void hw_perf_restore(u64 ctrl) { }
225static inline u64 hw_perf_disable_all(void) { return 0; } 225static 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 */