summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-04-17 20:22:29 -0700
committerJosh Stone <jistone@redhat.com>2009-04-17 20:24:32 -0700
commita544586160e1a0b5bfcb7dd7abdf84dfdb0ed082 (patch)
treed9677f93d1de90fa9c74d7ec3d3b7fe0b457dea9 /buildrun.cxx
parent7b3a97413eb1e8fce9ae37db0fc9d0f21d6b8f9a (diff)
downloadsystemtap-steved-a544586160e1a0b5bfcb7dd7abdf84dfdb0ed082.tar.gz
systemtap-steved-a544586160e1a0b5bfcb7dd7abdf84dfdb0ed082.tar.xz
systemtap-steved-a544586160e1a0b5bfcb7dd7abdf84dfdb0ed082.zip
Remove module boilerplate from tracequery
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.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index aac0c356..e0f22f29 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -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