summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-10-19 18:11:58 -0700
committerJosh Stone <jistone@redhat.com>2009-10-19 18:36:24 -0700
commit81fb86d83da9964e7d9e2330d78b2008f18054e4 (patch)
tree0462bb7e33e030f68925764b1aaeea1407919173 /tapsets.cxx
parent892e5de27d2f275e2d7c2160d81fe9e0c87b1ee1 (diff)
downloadsystemtap-steved-81fb86d83da9964e7d9e2330d78b2008f18054e4.tar.gz
systemtap-steved-81fb86d83da9964e7d9e2330d78b2008f18054e4.tar.xz
systemtap-steved-81fb86d83da9964e7d9e2330d78b2008f18054e4.zip
Improve some runtime struct layouts
Guided by pahole, I've shaved off a few padding bytes here and there. New sizes on x86_64: stap_task_finder_target 192 -> 184 stap_itrace_probe 216 -> 208 stap_utrace_probe 328 -> 312 stap_uprobe_tf 200 -> 192 stap_uprobe_spec 48 -> 40 I only changed field layouts, not types or names, so this should be perfectly safe. (FLW)
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 59dbc4b3..17e6c6cf 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -4433,11 +4433,11 @@ uprobe_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline() << "static const struct stap_uprobe_spec {"; // NB: read-only structure
s.op->newline(1) << "unsigned tfi;"; // index into stap_uprobe_finders[]
+ s.op->newline() << "unsigned return_p:1;";
s.op->newline() << "unsigned long address;";
s.op->newline() << "const char *pp;";
s.op->newline() << "void (*ph) (struct context*);";
s.op->newline() << "unsigned long sdt_sem_address;";
- s.op->newline() << "unsigned return_p:1;";
s.op->newline(-1) << "} stap_uprobe_specs [] = {"; // NB: read-only structure
s.op->indent(1);
for (unsigned i =0; i<probes.size(); i++)