summaryrefslogtreecommitdiffstats
path: root/tapset/x86_64
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-05-22 14:57:33 -0700
committerJosh Stone <jistone@redhat.com>2009-05-22 14:57:33 -0700
commit29d0edebd429185b88ff9c476eb4fba4396b5f63 (patch)
tree01eddffbba9270c0b467550393c9a937fda14cc9 /tapset/x86_64
parentefd032a83a3e5254988a49ed52cdab85c19ce762 (diff)
downloadsystemtap-steved-29d0edebd429185b88ff9c476eb4fba4396b5f63.tar.gz
systemtap-steved-29d0edebd429185b88ff9c476eb4fba4396b5f63.tar.xz
systemtap-steved-29d0edebd429185b88ff9c476eb4fba4396b5f63.zip
Use embedded-C for empty functions
The functions asmlinkage() and fastcall() are used to help access syscall parameters on i686. All other archs don't need this, but they still define empty functions to shield the callers from arch details. However, stap issues warnings for empty script-level functions. This patch changes them to "%{ /* pure */ %}" so there's no complaint, and they will still get optimized away.
Diffstat (limited to 'tapset/x86_64')
-rw-r--r--tapset/x86_64/registers.stp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tapset/x86_64/registers.stp b/tapset/x86_64/registers.stp
index 2e21f3eb..48ba3119 100644
--- a/tapset/x86_64/registers.stp
+++ b/tapset/x86_64/registers.stp
@@ -235,11 +235,9 @@ function u64_arg:long (argnum:long) {
return ulonglong_arg(argnum)
}
-function asmlinkage() {
-}
+function asmlinkage() %{ /* pure */ %}
-function fastcall() {
-}
+function fastcall() %{ /* pure */ %}
function regparm(n:long) %{
if (_stp_probing_32bit_app(CONTEXT->regs) &&