Skip to content

Front-end translation for user interactivity. #43

@Dwctor

Description

@Dwctor

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions