aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/xenoprof.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-03-08 17:02:57 +0100
committerJan Beulich <jbeulich@suse.com>2012-03-08 17:02:57 +0100
commitcae10a689a5ee104a24dc01131e1d71d4060cc70 (patch)
tree74c22cad4cd0d7263a4b99cb57e258491c5d6521 /xen/include/asm-x86/xenoprof.h
parent48844dc21098fa59f1cac06eba31b548f576a446 (diff)
downloadxen-cae10a689a5ee104a24dc01131e1d71d4060cc70.tar.gz
xen-cae10a689a5ee104a24dc01131e1d71d4060cc70.tar.bz2
xen-cae10a689a5ee104a24dc01131e1d71d4060cc70.zip
oprofile: don't pass around redundant, easily derived arguments
Passing both a struct vcpu pointer and the corresponding struct domain one is simply pointless, especially when intermediate functions just forward it without themselves making use of the already obtained value. Also constify a few function parameters. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/xenoprof.h')
-rw-r--r--xen/include/asm-x86/xenoprof.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/xen/include/asm-x86/xenoprof.h b/xen/include/asm-x86/xenoprof.h
index f98b76e378..c03f8c8bf0 100644
--- a/xen/include/asm-x86/xenoprof.h
+++ b/xen/include/asm-x86/xenoprof.h
@@ -56,16 +56,15 @@ static inline void ibs_init(void) {}
#define ibs_caps 0
#endif
-int xenoprofile_get_mode(struct vcpu *v, struct cpu_user_regs * const regs);
+int xenoprofile_get_mode(const struct vcpu *, const struct cpu_user_regs *);
static inline int xenoprof_backtrace_supported(void)
{
return 1;
}
-void xenoprof_backtrace(
- struct domain *d, struct vcpu *vcpu,
- struct cpu_user_regs *const regs, unsigned long depth, int mode);
+void xenoprof_backtrace(struct vcpu *, const struct cpu_user_regs *,
+ unsigned long depth, int mode);
#define xenoprof_shared_gmfn(d, gmaddr, maddr) \
do { \