Skip to content
  • Prasad Joshi's avatar
    kvm tools: Provide the basic Gitish framework · 0a936c54
    Prasad Joshi authored
    
    
    - kvm-cmd.h: Adds a new structure cmd_struct to create a table of commands
      and callback function. The structure was copied from tools/perf
    
    - kvm-cmd.c: implements two main functions for command processing.
      kvm_get_command(): searches table for specific command.
      handle_command(): invokes the callback function for a given command.
    
    - kvm-help.[ch] Implements the kvm help command. The function
      list_common_cmds_help() is a copy of similar function in tools/perf.
    
    [ penberg@kernel.org: Add CREDITS-Git file for proper attributions. ]
    Signed-off-by: default avatarPrasad Joshi <prasadjoshi124@gmail.com>
    Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
    0a936c54
Loading