 6065210db9
			
		
	
	
	6065210db9
	
	
	
		
			
			Removing event types framework completely. The only remainder (apart
from few comments) is following enum:
  enum perf_user_event_type {
    ...
    PERF_RECORD_HEADER_EVENT_TYPE           = 65, /* deprecated */
    ...
  }
It's kept as deprecated, resulting in error when processed in
perf_session__process_user_event function.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1373556513-3000-6-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
		
	
			
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef __PERF_TOOL_H
 | |
| #define __PERF_TOOL_H
 | |
| 
 | |
| #include <stdbool.h>
 | |
| 
 | |
| struct perf_session;
 | |
| union perf_event;
 | |
| struct perf_evlist;
 | |
| struct perf_evsel;
 | |
| struct perf_sample;
 | |
| struct perf_tool;
 | |
| struct machine;
 | |
| 
 | |
| typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event,
 | |
| 			    struct perf_sample *sample,
 | |
| 			    struct perf_evsel *evsel, struct machine *machine);
 | |
| 
 | |
| typedef int (*event_op)(struct perf_tool *tool, union perf_event *event,
 | |
| 			struct perf_sample *sample, struct machine *machine);
 | |
| 
 | |
| typedef int (*event_attr_op)(struct perf_tool *tool,
 | |
| 			     union perf_event *event,
 | |
| 			     struct perf_evlist **pevlist);
 | |
| 
 | |
| typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event,
 | |
| 			 struct perf_session *session);
 | |
| 
 | |
| struct perf_tool {
 | |
| 	event_sample	sample,
 | |
| 			read;
 | |
| 	event_op	mmap,
 | |
| 			comm,
 | |
| 			fork,
 | |
| 			exit,
 | |
| 			lost,
 | |
| 			throttle,
 | |
| 			unthrottle;
 | |
| 	event_attr_op	attr;
 | |
| 	event_op2	tracing_data;
 | |
| 	event_op2	finished_round,
 | |
| 			build_id;
 | |
| 	bool		ordered_samples;
 | |
| 	bool		ordering_requires_timestamps;
 | |
| };
 | |
| 
 | |
| #endif /* __PERF_TOOL_H */
 |