]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.S
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / amd64-stap-optional-prefix.S
CommitLineData
1d506c26 1/* Copyright (C) 2014-2024 Free Software Foundation, Inc.
f33da99a
SDJ
2
3 This file is part of GDB.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18#include <sys/sdt.h>
19
20 .file "amd64-stap-optional-prefix.S"
21 .text
22 .globl main
23main:
24 mov %rsp,%rbp
25 pushq $42
26 STAP_PROBE1(probe, foo, (%rsp))
27 STAP_PROBE1(probe, bar, -8(%rbp))
28 STAP_PROBE1(probe, foo_prefix, 8@(%rsp))
29 STAP_PROBE1(probe, bar_prefix, 8@-8(%rbp))
30 mov %rbp,%rsp
30a1e6cc
SDJ
31 STAP_PROBE1(probe, uint8_probe, 1@$8)
32 STAP_PROBE1(probe, int8_probe, -1@$-8)
33 STAP_PROBE1(probe, uint16_probe, 2@$16)
34 STAP_PROBE1(probe, int16_probe, -2@$-16)
35 STAP_PROBE1(probe, uint32_probe, 4@$32)
36 STAP_PROBE1(probe, int32_probe, -4@$-32)
37 STAP_PROBE1(probe, uint64_probe, 8@$64)
38 STAP_PROBE1(probe, int64_probe, -8@$-64)
39 STAP_PROBE1(probe, fail_probe, -7@$16)
40 STAP_PROBE1(probe, fail2_probe, 23-@$16)
f33da99a
SDJ
41 xor %rax,%rax
42 ret
0f2cd53c 43 .section .note.GNU-stack,"",@progbits