diff options
author | fche <fche> | 2006-03-13 17:30:45 +0000 |
---|---|---|
committer | fche <fche> | 2006-03-13 17:30:45 +0000 |
commit | 3fd08858f53e9506a43e85597871867f717b16b5 (patch) | |
tree | 4218d71c4b725690fe84ed13bb635d89e7af164c /translate.cxx | |
parent | efcbce4e81d79aaa1ef92748d188f2f118443b7e (diff) | |
download | systemtap-steved-3fd08858f53e9506a43e85597871867f717b16b5.tar.gz systemtap-steved-3fd08858f53e9506a43e85597871867f717b16b5.tar.xz systemtap-steved-3fd08858f53e9506a43e85597871867f717b16b5.zip |
2006-03-13 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (emit_globals): Tag globals, especially the locks,
as __cacheline_aligned.
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/translate.cxx b/translate.cxx index c2146e84..94c6147a 100644 --- a/translate.cxx +++ b/translate.cxx @@ -925,22 +925,22 @@ c_unparser::emit_global (vardecl *v) string vn = c_varname (v->name); if (v->arity == 0) - o->newline() << "static " + o->newline() << "static __cacheline_aligned " << c_typename (v->type) << " " << "global_" << vn << ";"; else if (v->type == pe_stats) { - o->newline() << "static PMAP global_" + o->newline() << "static __cacheline_aligned PMAP global_" << vn << ";"; } else { - o->newline() << "static MAP global_" + o->newline() << "static __cacheline_aligned MAP global_" << vn << ";"; } - o->newline() << "static rwlock_t " + o->newline() << "static __cacheline_aligned rwlock_t " << "global_" << vn << "_lock;"; // Emit module_param helper variable |