func GetProbeStats() map[string]int64 {
	m, err := readKprobeProfile(KprobeProfile)
	if err != nil {
		log.Debugf("error retrieving probe stats: %s", err)
		return map[string]int64{}
	}

	res := make(map[string]int64, 2*len(m))
	for event, st := range m {
		parts := eventRegexp.FindStringSubmatch(event)
		if len(parts) > 2 {
			// strip UID and PID from name
			event = parts[1]
		}
		event = strings.ToLower(event)
		res[fmt.Sprintf("%s_hits", event)] = st.Hits
		res[fmt.Sprintf("%s_misses", event)] = st.Misses
	}

	return res
}
// GetProbeStats gathers stats about the # of kprobes triggered /missed by reading the kprobe_profile file
GetProbeStats gathers stats about the # of kprobes triggered /missed by reading the kprobe_profile file
// GetProbeStats gathers stats about the # of kprobes triggered / missed by reading the kprobe_profile file
func GetProbeStats() map[string]int64 {
	m, err := readKprobeProfile(KprobeProfile)
	if err != nil {
		log.Debugf("error retrieving probe stats: %s", err)
		return map[string]int64{}
	}
	res := make(map[string]int64, 2*len(m))
	for event, st := range m {
		parts := eventRegexp.FindStringSubmatch(event)
		if len(parts) > 2 {
			event = parts[1]
		}
		event = strings.ToLower(event)
		res[fmt.Sprintf("%s_hits", event)] = st.Hits
		res[fmt.Sprintf("%s_misses", event)] = st.Misses
	}
	return res
}
func GetProbeStats ( ) map [ string ] int64 { m , err := readKprobeProfile ( KprobeProfile ) if err != nil { log . Debugf ( " " , err ) return map [ string ] int64 { } } res := make ( map [ string ] int64 , 2 * len ( m ) ) for event , st := range m { parts := eventRegexp . FindStringSubmatch ( event ) if len ( parts ) > 2 { event = parts [ 1 ] } event = strings . ToLower ( event ) res [ fmt . Sprintf ( " " , event ) ] = st . Hits res [ fmt . Sprintf ( " " , event ) ] = st . Misses } return res }
GetProbeStats gathers stats about the # of kprobes triggered /missed by reading the kprobe_profile file
GetProbeStats gathers stats about the # of kprobes triggered / missed by reading the kprobe_profile file
// strip UID and PID from name