]> sourceware.org Git - systemtap.git/commitdiff
Remove module boilerplate from tracequery
authorJosh Stone <jistone@redhat.com>
Sat, 18 Apr 2009 03:22:29 +0000 (20:22 -0700)
committerJosh Stone <jistone@redhat.com>
Sat, 18 Apr 2009 03:24:32 +0000 (20:24 -0700)
Kernel modules will actually build just fine with none of the module
boilerplate code.  We don't care about ever actually loading the
tracequery module that we make, so don't bother emitting code we don't
need.

buildrun.cxx

index aac0c3568948d484813a8f4a5f82a51b0661ab74..e0f22f29c4a3ba6d6a26c5cbc700ddd2651432e9 100644 (file)
@@ -377,7 +377,6 @@ make_tracequery(systemtap_session& s, string& name, const vector<string>& extra_
   // create our source file
   string source(dir + "/tracequery.c");
   ofstream osrc(source.c_str());
-  osrc << "#include <linux/module.h>" << endl;
   osrc << "#ifdef CONFIG_TRACEPOINTS" << endl;
   osrc << "#include <linux/tracepoint.h>" << endl;
 
@@ -434,10 +433,6 @@ make_tracequery(systemtap_session& s, string& name, const vector<string>& extra_
 
   // finish up the module source
   osrc << "#endif /* CONFIG_TRACEPOINTS */" << endl;
-  osrc << "int init_module(void) { return 0; }" << endl;
-  osrc << "void cleanup_module(void) {}" << endl;
-  osrc << "MODULE_DESCRIPTION(\"tracepoint query\");" << endl;
-  osrc << "MODULE_LICENSE(\"GPL\");" << endl;
   osrc.close();
 
   // make the module
This page took 0.029136 seconds and 5 git commands to generate.