diff options
author | Olaf Hering <olaf@aepfle.de> | 2011-03-25 08:57:28 +0000 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2011-03-25 08:57:28 +0000 |
commit | b850b9b5730eae9ad058bf17f5b760183a021a90 (patch) | |
tree | 56058f644f1da72560b6256ad83ec20ba54e4670 /xen/common/trace.c | |
parent | 7699f779251088a0999625a8d403ea70b9941094 (diff) | |
download | xen-b850b9b5730eae9ad058bf17f5b760183a021a90.tar.gz xen-b850b9b5730eae9ad058bf17f5b760183a021a90.tar.bz2 xen-b850b9b5730eae9ad058bf17f5b760183a021a90.zip |
xentrace: print calculated numbers in calculate_tbuf_size()
Print number of pages to allocate for per-cpu tracebuffer and metadata
to ease debugging when allocation fails.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'xen/common/trace.c')
-rw-r--r-- | xen/common/trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/trace.c b/xen/common/trace.c index e290cdce17..cebc5d48d8 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -127,6 +127,8 @@ static int calculate_tbuf_size(unsigned int pages) 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()); return pages; } |