]> Pileus Git - ~andy/linux/blobdiff - include/linux/oprofile.h
oprofile: Introduce new oprofile sample add function (oprofile_add_ext_hw_sample)
[~andy/linux] / include / linux / oprofile.h
index 1ca64113efe866ccaf992d259849a90fb55c5e3a..7f5cfd3b37dd4d9dfe11ebdb1db92fb840c61dd4 100644 (file)
@@ -106,6 +106,13 @@ void oprofile_add_sample(struct pt_regs * const regs, unsigned long event);
 void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs,
                                unsigned long event, int is_kernel);
 
+/**
+ * Add an hardware sample.
+ */
+void oprofile_add_ext_hw_sample(unsigned long pc, struct pt_regs * const regs,
+       unsigned long event, int is_kernel,
+       struct task_struct *task);
+
 /* Use this instead when the PC value is not from the regs. Doesn't
  * backtrace. */
 void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event);