Skip to content

Commit a38b971

Browse files
authored
Merge pull request #12 from nelhage/asm-flags
Add some optimization options to our asm
2 parents 2354cce + 37d6ab5 commit a38b971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/systemtap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ macro_rules! sdt_asm(
181181
#[doc(hidden)]
182182
#[macro_export]
183183
macro_rules! _sdt_asm(
184-
($addr:tt, options $opt:tt, $provider:ident, $name:ident, $argstr:tt, $($arg:expr),*) => (
184+
($addr:tt, options ($($opt:ident),*), $provider:ident, $name:ident, $argstr:tt, $($arg:expr),*) => (
185185
asm!(concat!(r#"
186186
990: nop
187187
.pushsection .note.stapsdt,"?","note"
@@ -208,6 +208,6 @@ _.stapsdt.base: .space 1
208208
"#
209209
),
210210
$(in(reg) (($arg) as isize) ,)*
211-
options $opt,
211+
options(readonly, nostack, preserves_flags, $($opt),*),
212212
)
213213
));

0 commit comments

Comments
 (0)