diff options
| author | John Levon <levon@movementarian.org> | 2003-02-10 20:26:06 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-10 20:26:06 -0800 |
| commit | 220abb7dda07dbc7c0f53caad01a6a6690ad2fca (patch) | |
| tree | 4ead62f4725c3ab7b52a0d4456aee5718a21e942 /include/linux/oprofile.h | |
| parent | d22d63e3d297bc5acb41b5b08831af04fa954583 (diff) | |
[PATCH] oprofile: kernel/user addresses fix
This patch replaces the assumption that > PAGE_OFFSET == kernel address
with testing for user_mode(regs) and inserting switch codes instead.
Diffstat (limited to 'include/linux/oprofile.h')
| -rw-r--r-- | include/linux/oprofile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/oprofile.h b/include/linux/oprofile.h index 0c52f8df882d..5d906c21103f 100644 --- a/include/linux/oprofile.h +++ b/include/linux/oprofile.h @@ -49,7 +49,8 @@ int oprofile_arch_init(struct oprofile_operations ** ops); * Add a sample. This may be called from any context. Pass * smp_processor_id() as cpu. */ -extern void oprofile_add_sample(unsigned long eip, unsigned long event, int cpu); +extern void oprofile_add_sample(unsigned long eip, unsigned int is_kernel, + unsigned long event, int cpu); /** * Create a file of the given name as a child of the given root, with |
