From: Emanuele Rocca <ema@debian.org>
To: systemtap@sourceware.org
Subject: [PATCH] Fix build error on ia64
Date: Tue, 7 Jul 2020 09:47:36 +0200 [thread overview]
Message-ID: <20200707074736.GA48156@ariel> (raw)
Patch originally sent by Jason Duerstock <jason.duerstock@gmail.com> to
fix Debian bug #884007: https://bugs.debian.org/884007
---
includes/sys/sdt.h | 2 ++
python/HelperSDT/_HelperSDT.c | 4 ++++
2 files changed, 6 insertions(+)
diff --git includes/sys/sdt.h includes/sys/sdt.h
index d1d10a658..a6078e8c4 100644
--- includes/sys/sdt.h
+++ includes/sys/sdt.h
@@ -86,6 +86,8 @@
# ifndef STAP_SDT_ARG_CONSTRAINT
# if defined __powerpc__
# define STAP_SDT_ARG_CONSTRAINT nZr
+# elif defined __ia64__
+# define STAP_SDT_ARG_CONSTRAINT nr
# else
# define STAP_SDT_ARG_CONSTRAINT nor
# endif
diff --git python/HelperSDT/_HelperSDT.c python/HelperSDT/_HelperSDT.c
index 967cb6077..0f76abd8a 100644
--- python/HelperSDT/_HelperSDT.c
+++ python/HelperSDT/_HelperSDT.c
@@ -236,7 +236,11 @@ init_HelperSDT(void)
// it with the asm() statement. Otherwise we get a @GOTPCREL
// reference which stap can't parse.
void *fptr = &PyObject_GenericGetAttr;
+#ifdef __ia64__
+ asm ("nop 0" : "=r"(fptr) : "r"(fptr));
+#else
asm ("nop" : "=r"(fptr) : "r"(fptr));
+#endif
STAP_PROBE2(PROVIDER, Init, stap_module, fptr);
}
return module;
--
2.27.0
Reply-To:
reply other threads:[~2020-07-07 7:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200707074736.GA48156@ariel \
--to=ema@debian.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).