From f4740301228bdc839e8c506dff9561b848dcc8f8 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 15 Jan 2008 17:11:17 +0000 Subject: 2008-01-14 Martin Hunt * translate.cxx (emit_module_init): Call _stp_print_kernel_info() to print out version information and internal memory usage stats. --- translate.cxx | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 874e9dc1..7f42ceec 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1,5 +1,5 @@ // translation pass -// Copyright (C) 2005-2007 Red Hat Inc. +// Copyright (C) 2005-2008 Red Hat Inc. // Copyright (C) 2005-2007 Intel Corporation. // // This file is part of systemtap, and is free software. You can @@ -1148,21 +1148,13 @@ c_unparser::emit_module_init () // Print a message to the kernel log about this module. This is // intended to help debug problems with systemtap modules. - o->newline() << "printk (KERN_DEBUG \"%s: " - << "systemtap: " << VERSION << "/" << dwfl_version (NULL) - << ", base: %p" - << ", memory: %lu+%lu+%lu+%lu+%lu data+text+ctx+io+glob" - << ", probes: " << session->probes.size() - << "\\n\"" - // printk arguments - << ", THIS_MODULE->name" - << ", THIS_MODULE->module_core" - << ", (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)" - << ", (unsigned long) THIS_MODULE->core_text_size" - << ", (unsigned long) (num_online_cpus() * sizeof(struct context))" - << ", (unsigned long) _stp_allocated_net_memory" - << ", (unsigned long) _stp_allocated_memory" - << ");"; + + o->newline() << "_stp_print_kernel_info(" + << "\"" << VERSION + << "/" << dwfl_version (NULL) << "\"" + << ", (num_online_cpus() * sizeof(struct context))" + << ", " << session->probes.size() + << ");"; // Run all probe registrations. This actually runs begin probes. -- cgit