// AvailableTraceEvents returns the list of available trace events.
AvailableTraceEvents returns the list of available trace events.
// AvailableTraceEvents returns the list of available trace events .
func AvailableTraceEvents() []string {
	events, err := ioutil.ReadFile(traceDir + "/available_events")
	if err != nil {
		return nil
	}
	lines := strings.Split(string(events), "\n")
	sort.Strings(lines)
	return lines
}
func AvailableTraceEvents ( ) [ ] string { events , err := ioutil . ReadFile ( traceDir + " " ) if err != nil { return nil } lines := strings . Split ( string ( events ) , " \n " ) sort . Strings ( lines ) return lines }
AvailableTraceEvents returns the list of available trace events.
AvailableTraceEvents returns the list of available trace events .