You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Honey-Potion creates a generic Front-end using LIBBPF to open, load and attach the program skeleton. Other than that, the Front-end can change when there is a map to be printed, allowing the output of it's values.
An improvement to that behavior would be to allow users to define their own Front-ends in a Elixir function that then gets translated for them. That way, we can eventually allow user interactivity in our program. For example:
def frontend() do
Front.getinput(char)
case char do
"a" -> BPF.open_load_attach("Program_a")
"b" -> BPF.open_load_attach("Program_b")
x -> Front.print("Usage: <char> where char is "a" or "b"
end
end
Other than getting a user input, we could also get command line arguments.
The text was updated successfully, but these errors were encountered:
Currently Honey-Potion creates a generic Front-end using LIBBPF to open, load and attach the program skeleton. Other than that, the Front-end can change when there is a map to be printed, allowing the output of it's values.
An improvement to that behavior would be to allow users to define their own Front-ends in a Elixir function that then gets translated for them. That way, we can eventually allow user interactivity in our program. For example:
Other than getting a user input, we could also get command line arguments.
The text was updated successfully, but these errors were encountered: