Last active
June 5, 2019 14:42
-
-
Save calavera/292d30a153a01bde10d4cd58544a6c10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We need to create a hash map. | |
# We'll attach that map to a program later. | |
map create /sys/fs/bpf/hash_map type hash key 4 value 8 entries 10 name hash_map | |
# List all maps in the system, | |
# so I can verify that the new map is there. | |
map show | |
# Load a program and attach the new map to it. | |
prog load bpf_prog.o /sys/fs/bpf/bpf_prog map name hash_map /sys/fs/bpf/hash_map | |
# List all programs in the system, | |
# so I can verify that the new program is there. | |
prog show |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment