oprofile: Introduce new oprofile sample add function (oprofile_add_ext_hw_sample)
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Fri, 21 Jan 2011 10:06:54 +0000 (10:06 +0000)
committerRobert Richter <robert.richter@amd.com>
Tue, 15 Feb 2011 10:07:07 +0000 (11:07 +0100)
commit54ebbe7ba51d97a28a9a406203d171d61858e4b9
tree529982f17aa0aba84a310261be0773f68f4337b1
parentd14dd7e20d5e526557f5d3cfef4046a642f80924
oprofile: Introduce new oprofile sample add function (oprofile_add_ext_hw_sample)

This patch introduces a new oprofile sample add function
(oprofile_add_ext_hw_sample) that can also take task_struct as an
argument, which is used by the hwsampler kernel module when copying
hardware samples to OProfile buffers.

Applied with following changes:
* removed #include <linux/module.h>
* whitespace changes
* removed conditional compilation (CONFIG_HAVE_HWSAMPLER)
* modified order of functions
* fix missing function definition in header file

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Maran Pakkirisamy <maranp@linux.vnet.ibm.com>
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/cpu_buffer.c
include/linux/oprofile.h