Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeFlowerX committed Dec 21, 2023
1 parent c921c38 commit 973d197
Show file tree
Hide file tree
Showing 10 changed files with 631 additions and 206 deletions.
3 changes: 3 additions & 0 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ func persistentPreRunEFunc(command *cobra.Command, args []string) error {
mconfig.DumpHex = gconfig.DumpHex
mconfig.ShowTime = gconfig.ShowTime
mconfig.ShowUid = gconfig.ShowUid
mconfig.Next = gconfig.Next

// 1. hook uprobe
mconfig.InitStackUprobeConfig()
Expand Down Expand Up @@ -613,4 +614,6 @@ func init() {
// syscall hook
rootCmd.PersistentFlags().StringVarP(&gconfig.SysCall, "syscall", "s", "", "filter syscalls")
rootCmd.PersistentFlags().StringVar(&gconfig.NoSysCall, "no-syscall", "", "syscall black list, max 20")
// 新的数据读取方案
rootCmd.PersistentFlags().BoolVar(&gconfig.Next, "next", false, "next version")
}
2 changes: 1 addition & 1 deletion src/maps.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BPF_ARRAY(match_ctx_gen, match_ctx_t, 1);
BPF_LRU_HASH(match_ctx_map, u64, match_ctx_t, 1024);
BPF_PERCPU_ARRAY(event_data_map, event_data_t, 1);
BPF_PERCPU_ARRAY(op_ctx_map, op_ctx_t, 1);
BPF_HASH(op_list, u32, op_config_t, 32);
BPF_HASH(op_list, u32, op_config_t, 256);
BPF_ARRAY(base_config, config_entry_t, 1);

#endif /* __MAPS_H__ */
Loading

0 comments on commit 973d197

Please # to comment.