Skip to content

Commit

Permalink
Merge pull request #31 from jpsamaroo/jps/struct-access
Browse files Browse the repository at this point in the history
Struct accessors and other fun things
  • Loading branch information
jpsamaroo authored Jan 20, 2022
2 parents 0043652 + 71993dc commit f39eb63
Show file tree
Hide file tree
Showing 25 changed files with 1,705 additions and 222 deletions.
10 changes: 5 additions & 5 deletions .build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ sources:
- https://github.com/jpsamaroo/BPFnative.jl
tasks:
- setup-julia: |
wget https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.2-linux-x86_64.tar.gz
tar xf julia-1.6.2-*
sudo ln -s $PWD/julia-1.6.2/bin/julia /usr/local/bin/julia
wget -q https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.1-linux-x86_64.tar.gz
tar xf julia-1.7.1-*
sudo ln -s $PWD/julia-1.7.1/bin/julia /usr/local/bin/julia
- build: |
cd BPFnative.jl
sudo julia -e 'using Pkg; Pkg.update()' >/dev/null 2>&1
sudo julia --project -e 'using Pkg; Pkg.instantiate()' >/dev/null 2>&1
sudo julia --project -e 'ENV["BPFNATIVE_ROOT_TESTS"] = "1"; using Pkg; Pkg.test("BPFnative")'
sudo julia --project -e 'ENV["JULIA_PKG_PRECOMPILE_AUTO"]="0"; using Pkg; Pkg.instantiate()' >/dev/null 2>&1
sudo julia --project -e 'ENV["JULIA_PKG_PRECOMPILE_AUTO"]="0"; ENV["BPFNATIVE_ROOT_TESTS"] = "1"; ENV["JULIA_DEBUG"] = "BPFnative"; using Pkg; Pkg.test("BPFnative")'
97 changes: 38 additions & 59 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,25 @@ version = "1.0.8+0"

[[CBinding]]
deps = ["Clang_jll", "Libdl", "Markdown", "Scratch"]
git-tree-sha1 = "8d64dcb3b02319e703f453a37351a475b7cf0b4e"
git-tree-sha1 = "9b5b4bb2e6debc86998e1d3862ee60dd3b5b5965"
uuid = "d43a6710-96b8-4a2d-833c-c424785e5374"
version = "1.0.6"
version = "1.0.8"

[[CEnum]]
git-tree-sha1 = "215a9aa4a1f23fbd05b92769fdd62559488d70e9"
uuid = "fa961155-64e5-5f13-b03f-caf6b980ea82"
version = "0.4.1"

[[Clang_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "libLLVM_jll"]
git-tree-sha1 = "a5923c06de3178dd755f4b9411ea8922a7ae6fb8"
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Zlib_jll", "libLLVM_jll"]
git-tree-sha1 = "8cf7e67e264dedc5d321ec87e78525e958aea057"
uuid = "0ee61d77-7f21-5576-8119-9fcc46b10100"
version = "11.0.1+3"

[[Compat]]
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "SHA", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
git-tree-sha1 = "344f143fa0ec67e47917848795ab19c6a455f32c"
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
version = "3.32.0"

[[DataStructures]]
deps = ["Compat", "InteractiveUtils", "OrderedCollections"]
git-tree-sha1 = "4437b64df1e0adccc3e5d1adbc3ac741095e4677"
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
version = "0.18.9"
version = "12.0.1+3"

[[Dates]]
deps = ["Printf"]
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"

[[DelimitedFiles]]
deps = ["Mmap"]
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"

[[Distributed]]
deps = ["Random", "Serialization", "Sockets"]
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"

[[Downloads]]
deps = ["ArgTools", "LibCURL", "NetworkOptions"]
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Expand All @@ -72,10 +52,10 @@ uuid = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
version = "0.1.6"

[[GPUCompiler]]
deps = ["DataStructures", "ExprTools", "InteractiveUtils", "LLVM", "Libdl", "Logging", "TimerOutputs", "UUIDs"]
git-tree-sha1 = "0da0f52fc521ff23b8291e7fda54c61907609f12"
deps = ["ExprTools", "InteractiveUtils", "LLVM", "Libdl", "Logging", "TimerOutputs", "UUIDs"]
git-tree-sha1 = "2cac236070c2c4b36de54ae9146b55ee2c34ac7a"
uuid = "61eb1bfa-7361-4325-ad38-22787b887f55"
version = "0.12.6"
version = "0.13.10"

[[InteractiveUtils]]
deps = ["Markdown"]
Expand All @@ -89,15 +69,15 @@ version = "1.3.0"

[[LLVM]]
deps = ["CEnum", "LLVMExtra_jll", "Libdl", "Printf", "Unicode"]
git-tree-sha1 = "733abcbdc67337bb6aaf873c6bebbe1e6440a5df"
git-tree-sha1 = "7cc22e69995e2329cc047a879395b2b74647ab5f"
uuid = "929cbde3-209d-540e-8aea-75f648917ca0"
version = "4.1.1"
version = "4.7.0"

[[LLVMExtra_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "b36c0677a0549c7d1dc8719899a4133abbfacf7d"
git-tree-sha1 = "c5fc4bef251ecd37685bea1c4068a9cfa41e8b9a"
uuid = "dad2f222-ce93-54a1-a47d-0025e8a3acab"
version = "0.0.6+0"
version = "0.0.13+0"

[[LibCURL]]
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
Expand All @@ -124,10 +104,6 @@ version = "0.3.0+0"
[[Libdl]]
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[[LinearAlgebra]]
deps = ["Libdl"]
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[[Logging]]
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"

Expand All @@ -139,19 +115,17 @@ uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
deps = ["Artifacts", "Libdl"]
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"

[[Mmap]]
uuid = "a63ad114-7e13-5084-954f-fe012c677804"

[[MozillaCACerts_jll]]
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"

[[NetworkOptions]]
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"

[[OrderedCollections]]
git-tree-sha1 = "85f8e6578bf1f9ee0d11e7bb1b1456435479d47c"
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
version = "1.4.1"
[[ObjectFile]]
deps = ["Reexport", "StructIO"]
git-tree-sha1 = "55ce61d43409b1fb0279d1781bf3b0f22c83ab3b"
uuid = "d8793406-e978-5875-9003-1fc021f44a92"
version = "0.3.7"

[[Pkg]]
deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
Expand All @@ -172,9 +146,14 @@ deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"

[[Random]]
deps = ["Serialization"]
deps = ["SHA", "Serialization"]
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[Reexport]]
git-tree-sha1 = "45e428421666073eab6f2da5c9d310d99bb12f9b"
uuid = "189a3867-3050-52da-a836-e630ba90ab69"
version = "1.2.2"

[[SHA]]
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"

Expand All @@ -187,20 +166,14 @@ version = "1.1.0"
[[Serialization]]
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

[[SharedArrays]]
deps = ["Distributed", "Mmap", "Random", "Serialization"]
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"

[[Sockets]]
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"

[[SparseArrays]]
deps = ["LinearAlgebra", "Random"]
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[[Statistics]]
deps = ["LinearAlgebra", "SparseArrays"]
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
[[StructIO]]
deps = ["Test"]
git-tree-sha1 = "010dc73c7146869c042b49adcdb6bf528c12e859"
uuid = "53d494c1-5632-5724-8f4c-31dff12d585f"
version = "0.3.0"

[[TOML]]
deps = ["Dates"]
Expand All @@ -216,9 +189,9 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[TimerOutputs]]
deps = ["ExprTools", "Printf"]
git-tree-sha1 = "209a8326c4f955e2442c07b56029e88bb48299c7"
git-tree-sha1 = "7cb456f358e8f9d102a8b25e8dfedf58fa5689bc"
uuid = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
version = "0.5.12"
version = "0.5.13"

[[UUIDs]]
deps = ["Random", "SHA"]
Expand All @@ -227,11 +200,17 @@ uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
[[Unicode]]
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[[VMLinuxBindings]]
deps = ["CBinding"]
git-tree-sha1 = "4f6d71c98437f60e2e8b99bf7b00a8864cf4f0ae"
uuid = "3d5d7239-16b4-4651-96ed-9e800c796499"
version = "0.1.2"

[[XZ_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "9f76853ea2ba894054e24640abfb73d73e5a4cb5"
git-tree-sha1 = "a921669cd9a45c23031fd4eb904f5cc3d20de415"
uuid = "ffd25f8a-64ca-5728-b0f7-c24cf3aae800"
version = "5.2.5+0"
version = "5.2.5+2"

[[Zlib_jll]]
deps = ["Libdl"]
Expand Down
15 changes: 6 additions & 9 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"
Libbpf_jll = "02f9a84d-9555-5f1a-8c3c-42027521038d"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
ObjectFile = "d8793406-e978-5875-9003-1fc021f44a92"
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
VMLinuxBindings = "3d5d7239-16b4-4651-96ed-9e800c796499"

[compat]
CBinding = "1"
GPUCompiler = "0.12"
GPUCompiler = "0.13"
LLVM = "4"
Libbpf_jll = "0.3"
ObjectFile = "0.3"
Preferences = "1"
julia = "1.6"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
UProbes = "fdc92b62-57bd-11e9-1326-e584eb179d13"

[targets]
test = ["Test", "UProbes"]
VMLinuxBindings = "0.1.2"
julia = "1.7"
Loading

0 comments on commit f39eb63

Please sign in to comment.