+2007-01-18 Frank Ch. Eigler <fche@elastic.org>
+
+ * main.cxx (version): Add (C) 2007.
+ * translate.cxx (emit_module_init): Add a KERN_DEBUG printk
+ at module startup time to aid debugging and auditing.
+
2007-01-12 David Smith <dsmith@redhat.com>
* tapsets.cxx
<< "SystemTap translator/driver "
<< "(version " << VERSION << " built " << DATE << ")" << endl
<< "(Using " << dwfl_version (NULL) << " libraries.)" << endl
- << "Copyright (C) 2005-2006 Red Hat, Inc. and others" << endl
+ << "Copyright (C) 2005-2007 Red Hat, Inc. and others" << endl
<< "This is free software; see the source for copying conditions." << endl;
}
// translation pass
-// Copyright (C) 2005, 2006 Red Hat Inc.
+// Copyright (C) 2005, 2006, 2007 Red Hat Inc.
// Copyright (C) 2005, 2006 Intel Corporation
//
// This file is part of systemtap, and is free software. You can
o->newline() << "int i=0, j=0;"; // for derived_probe_group use
o->newline() << "const char *probe_point = \"\";";
+ // 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
+ << ", base: %p"
+ << ", memory: %lu+%lu data+text" // XXX: + runtime dynamic memory
+ << ", probes: " << session->probes.size()
+ << "\\n\""
+ // printk arguments
+ << ", THIS_MODULE->name"
+ << ", THIS_MODULE->module_core"
+ << ", (unsigned long) THIS_MODULE->core_size"
+ << ", (unsigned long) THIS_MODULE->core_text_size"
+ << ");";
+
// Compare actual and targeted kernel releases/machines. Sometimes
// one may install the incorrect debuginfo or -devel RPM, and try to
// run a probe compiled for a different version. Catch this early,