Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
xen
23173-xentrace_Move_register_cpu_notifier_call_...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 23173-xentrace_Move_register_cpu_notifier_call_into_boot-time_init..patch of Package xen
changeset: 23173:94cef9aaf0cd user: Keir Fraser <keir@xen.org> date: Wed Apr 06 15:52:50 2011 +0100 files: xen/common/trace.c description: xentrace: Move register_cpu_notifier() call into boot-time init. We can't do it lazily from alloc_trace_bufs() as that gets called later if tracing is enabled later by dom0. Signed-off-by: Keir Fraser <keir@xen.org> --- xen/common/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: xen-4.1.2-testing/xen/common/trace.c =================================================================== --- xen-4.1.2-testing.orig/xen/common/trace.c +++ xen-4.1.2-testing/xen/common/trace.c @@ -225,8 +225,6 @@ static int alloc_trace_bufs(unsigned int t_buf_highwater = data_size >> 1; /* 50% high water */ opt_tbuf_size = pages; - register_cpu_notifier(&cpu_nfb); - printk("xentrace: initialised\n"); wmb(); /* above must be visible before tb_init_done flag set */ tb_init_done = 1; @@ -309,6 +307,8 @@ int trace_will_trace_event(u32 event) */ void __init init_trace_bufs(void) { + register_cpu_notifier(&cpu_nfb); + if ( opt_tbuf_size && alloc_trace_bufs(opt_tbuf_size) ) { printk(XENLOG_INFO "xentrace: allocation size %d failed, disabling\n",
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor