Skip to content

Commit 19911ea

Browse files
committed
Add ppc64le support
1 parent cd0d42b commit 19911ea

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ steps:
1414
- label: "Julia v1.6 (i686)"
1515
plugins:
1616
- JuliaCI/julia:
17-
version: "1"
17+
version: "1.6"
1818
- staticfloat/sandbox#v1:
1919
rootfs_url: "https://github.com/JuliaCI/rootfs-images/releases/download/v5.44/agent_linux.i686.tar.gz"
2020
rootfs_treehash: "c0e2d7ef8f233d978c15e61734f0dfa25aba7536"
21+
workspaces:
22+
- "/cache:/cache"
23+
# Once inside the sandbox, install a different version of Julia to run our tests
2124
- JuliaCI/julia:
2225
version: "1.6"
2326
arch: "i686"
@@ -52,3 +55,15 @@ steps:
5255
os: "linux"
5356
arch: "armv7l"
5457
timeout_in_minutes: 60
58+
- label: "Julia v1.10 (PPC64le)"
59+
plugins:
60+
- JuliaCI/julia#v1:
61+
version: "1.10"
62+
arch: "powerpc64le"
63+
- JuliaCI/julia-test#v1:
64+
agents:
65+
queue: "juliaecosystem"
66+
sandbox.jl: "true"
67+
os: "linux"
68+
arch: "powerpc64le"
69+
timeout_in_minutes: 60

src/LinuxPerf.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ elseif Sys.ARCH === :aarch64
165165
Clong(241)
166166
elseif Sys.ARCH === :arm
167167
Clong(364)
168+
elseif Sys.ARCH === :powerpc64le || Sys.ARCH === :ppc64le
169+
Clong(319)
168170
else
169171
Clong(-1) # sentinel for unknown syscall ID
170172
end
@@ -346,6 +348,8 @@ elseif Sys.ARCH === :aarch64
346348
Clong(167)
347349
elseif Sys.ARCH === :arm
348350
Clong(172)
351+
elseif Sys.ARCH === :powerpc64le || Sys.ARCH === :ppc64le
352+
Clong(171)
349353
else
350354
Clong(-1) # sentinel for unknown syscall ID
351355
end

0 commit comments

Comments
 (0)