ac6e56e6d7
23900-xzalloc.patch 24144-cpufreq-turbo-crash.patch 24148-shadow-pgt-dying-op-performance.patch 24155-x86-ioapic-EOI-after-migration.patch 24156-x86-ioapic-shared-vectors.patch 24157-x86-xstate-init.patch 24168-x86-vioapic-clear-remote_irr.patch - submit fixes for bnc#649209 and bnc#711892 xl-create-pv-with-qcow2-img.patch update suspend_evtchn_lock.patch - Update trace.c, merge patches from upstream 23050-xentrace_dynamic_tracebuffer_allocation.patch 23091-xentrace_fix_t_info_pages_calculation..patch 23092-xentrace_print_calculated_numbers_in_calculate_tbuf_size.patch 23093-xentrace_remove_gdprintk_usage_since_they_are_not_in_guest_context.patch 23094-xentrace_update_comments.patch 23095-xentrace_use_consistent_printk_prefix.patch 23128-xentrace_correct_formula_to_calculate_t_info_pages.patch 23129-xentrace_remove_unneeded_debug_printk.patch 23173-xentrace_Move_register_cpu_notifier_call_into_boot-time_init..patch 23239-xentrace_correct_overflow_check_for_number_of_per-cpu_trace_pages.patch 23308-xentrace_Move_the_global_variable_t_info_first_offset_into_calculate_tbuf_size.patch 23309-xentrace_Mark_data_size___read_mostly_because_its_only_written_once.patch 23310-xentrace_Remove_unneeded_cast_when_assigning_pointer_value_to_dst.patch 23404-xentrace_reduce_trace_buffer_size_to_something_mfn_offset_can_reach.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=160
112 lines
4.0 KiB
Diff
112 lines
4.0 KiB
Diff
changeset: 23095:941119d58655
|
|
user: Olaf Hering <olaf@aepfle.de>
|
|
date: Fri Mar 25 09:01:37 2011 +0000
|
|
files: xen/common/trace.c
|
|
description:
|
|
xentrace: use consistent printk prefix
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
|
|
---
|
|
xen/common/trace.c | 31 +++++++++++++++++--------------
|
|
1 file changed, 17 insertions(+), 14 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
|
|
@@ -119,16 +119,18 @@ static int calculate_tbuf_size(unsigned
|
|
size /= PAGE_SIZE;
|
|
if ( pages > size )
|
|
{
|
|
- printk(XENLOG_INFO "%s: requested number of %u pages reduced to %u\n",
|
|
- __func__, pages, (unsigned int)size);
|
|
+ printk(XENLOG_INFO "xentrace: requested number of %u pages "
|
|
+ "reduced to %u\n",
|
|
+ pages, (unsigned int)size);
|
|
pages = size;
|
|
}
|
|
|
|
t_info_words = num_online_cpus() * pages + t_info_first_offset;
|
|
t_info_bytes = t_info_words * sizeof(uint32_t);
|
|
t_info_pages = PFN_UP(t_info_bytes);
|
|
- printk(XENLOG_INFO "xentrace: requesting %u t_info pages for %u trace pages on %u cpus\n",
|
|
- t_info_pages, pages, num_online_cpus());
|
|
+ printk(XENLOG_INFO "xentrace: requesting %u t_info pages "
|
|
+ "for %u trace pages on %u cpus\n",
|
|
+ t_info_pages, pages, num_online_cpus());
|
|
return pages;
|
|
}
|
|
|
|
@@ -177,7 +179,8 @@ static int alloc_trace_bufs(unsigned int
|
|
if ( (rawbuf = alloc_xenheap_pages(
|
|
order, MEMF_bits(32 + PAGE_SHIFT))) == NULL )
|
|
{
|
|
- printk("Xen trace buffers: memory allocation failed on cpu %d\n", cpu);
|
|
+ printk(XENLOG_INFO "xentrace: memory allocation failed "
|
|
+ "on cpu %d\n", cpu);
|
|
goto out_dealloc;
|
|
}
|
|
|
|
@@ -212,7 +215,7 @@ static int alloc_trace_bufs(unsigned int
|
|
t_info_mfn_list[offset + i]=mfn + i;
|
|
}
|
|
t_info->mfn_offset[cpu]=offset;
|
|
- printk(XENLOG_INFO "p%d mfn %"PRIx32" offset %d\n",
|
|
+ printk(XENLOG_INFO "xentrace: p%d mfn %"PRIx32" offset %d\n",
|
|
cpu, mfn, offset);
|
|
offset+=i;
|
|
|
|
@@ -225,7 +228,7 @@ static int alloc_trace_bufs(unsigned int
|
|
|
|
register_cpu_notifier(&cpu_nfb);
|
|
|
|
- printk("Xen trace buffers: initialised\n");
|
|
+ printk("xentrace: initialised\n");
|
|
wmb(); /* above must be visible before tb_init_done flag set */
|
|
tb_init_done = 1;
|
|
|
|
@@ -236,7 +239,7 @@ out_dealloc:
|
|
{
|
|
void *rawbuf = per_cpu(t_bufs, cpu);
|
|
per_cpu(t_bufs, cpu) = NULL;
|
|
- printk("Xen trace buffers: cpu %d p %p\n", cpu, rawbuf);
|
|
+ printk(XENLOG_DEBUG "xentrace: cpu %d p %p\n", cpu, rawbuf);
|
|
if ( rawbuf )
|
|
{
|
|
ASSERT(!(virt_to_page(rawbuf)->count_info & PGC_allocated));
|
|
@@ -245,7 +248,7 @@ out_dealloc:
|
|
}
|
|
free_xenheap_pages(t_info, get_order_from_pages(t_info_pages));
|
|
t_info = NULL;
|
|
- printk("Xen trace buffers: allocation failed! Tracing disabled.\n");
|
|
+ printk(XENLOG_WARNING "xentrace: allocation failed! Tracing disabled.\n");
|
|
return -ENOMEM;
|
|
}
|
|
|
|
@@ -264,8 +267,9 @@ static int tb_set_size(unsigned int page
|
|
*/
|
|
if ( opt_tbuf_size && pages != opt_tbuf_size )
|
|
{
|
|
- printk(XENLOG_INFO "tb_set_size from %d to %d not implemented\n",
|
|
- opt_tbuf_size, pages);
|
|
+ printk(XENLOG_INFO "xentrace: tb_set_size from %d to %d "
|
|
+ "not implemented\n",
|
|
+ opt_tbuf_size, pages);
|
|
return -EINVAL;
|
|
}
|
|
|
|
@@ -309,9 +313,8 @@ void __init init_trace_bufs(void)
|
|
{
|
|
if ( opt_tbuf_size && alloc_trace_bufs(opt_tbuf_size) )
|
|
{
|
|
- printk(XENLOG_INFO "Xen trace buffers: "
|
|
- "allocation size %d failed, disabling\n",
|
|
- opt_tbuf_size);
|
|
+ printk(XENLOG_INFO "xentrace: allocation size %d failed, disabling\n",
|
|
+ opt_tbuf_size);
|
|
opt_tbuf_size = 0;
|
|
}
|
|
}
|