[strace/strace] printsiginfo: decode si_pkey field (PR #210)

Slava notifications at github.com
Sun Feb 6 15:49:16 UTC 2022


Hey, I've replaced:

```
if (*p)
    __asm__ volatile("":::"memory");
```

with 

```
__asm__ volatile("":: "r" (*p));
```

which is IMHO a bit simpler and generates a single `mov` instruction (in x86 assembly), unlike trick with if (which produces 2 instructions).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/pull/210#issuecomment-1030859274
You are receiving this because you are subscribed to this thread.

Message ID: <strace/strace/pull/210/c1030859274 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20220206/1413c0df/attachment.htm>


More information about the Strace-devel mailing list