func (p *Probe) Stop() error {
	if !p.Enabled {
		return nil
	}
	// stop polling perf maps
	for _, m := range p.PerfMaps {
		if err := m.pollStop(); err != nil {
			baseLogger.Errorf("couldn't close perf map %v gracefully: %v", m.PerfOutputMapName, err)
		}
	}
	return nil
}
// Stop - Stops the probe
Stops the probe
// Stop - Stops the probe
func (p *Probe) Stop() error {
	if !p.Enabled {
		return nil
	}
	for _, m := range p.PerfMaps {
		if err := m.pollStop(); err != nil {
			baseLogger.Errorf("couldn't close perf map %v gracefully: %v", m.PerfOutputMapName, err)
		}
	}
	return nil
}
func ( p * Probe ) Stop ( ) error { if ! p . Enabled { return nil } for _ , m := range p . PerfMaps { if err := m . pollStop ( ) ; err != nil { baseLogger . Errorf ( " " , m . PerfOutputMapName , err ) } } return nil }
Stops the probe
Stops the probe
// stop polling perf maps