pkg/gadgets: Add Report type for profile gadget.
@@ -18,3 +18,16 @@ const (
ProfileUserParam = "user"
ProfileKernelParam = "kernel"
)
+
+type Report struct {
+ Node string `json:"node,omitempty"`
+ Namespace string `json:"namespace,omitempty"`
+ Pod string `json:"pod,omitempty"`
+ Container string `json:"container,omitempty"`
+
+ Comm string `json:"comm,omitempty"`
+ Pid uint32 `json:"pid,omitempty"`
+ UserStack []string `json:"user_stack,omitempty"`
+ KernelStack []string `json:"kernel_stack,omitempty"`
+ Count uint64 `json:"count,omitempty"`
+}
