 395c307089
			
		
	
	
	395c307089
	
	
	
		
			
			Add a test for the newly added PERF_COUNT_SW_DUMMY event. The test checks that tracking events continue when an event is disabled but a dummy software event is not disabled. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Tested-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1377975053-3811-4-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef TESTS_H
 | |
| #define TESTS_H
 | |
| 
 | |
| #define TEST_ASSERT_VAL(text, cond)					 \
 | |
| do {									 \
 | |
| 	if (!(cond)) {							 \
 | |
| 		pr_debug("FAILED %s:%d %s\n", __FILE__, __LINE__, text); \
 | |
| 		return -1;						 \
 | |
| 	}								 \
 | |
| } while (0)
 | |
| 
 | |
| enum {
 | |
| 	TEST_OK   =  0,
 | |
| 	TEST_FAIL = -1,
 | |
| 	TEST_SKIP = -2,
 | |
| };
 | |
| 
 | |
| /* Tests */
 | |
| int test__vmlinux_matches_kallsyms(void);
 | |
| int test__open_syscall_event(void);
 | |
| int test__open_syscall_event_on_all_cpus(void);
 | |
| int test__basic_mmap(void);
 | |
| int test__PERF_RECORD(void);
 | |
| int test__rdpmc(void);
 | |
| int test__perf_evsel__roundtrip_name_test(void);
 | |
| int test__perf_evsel__tp_sched_test(void);
 | |
| int test__syscall_open_tp_fields(void);
 | |
| int test__pmu(void);
 | |
| int test__attr(void);
 | |
| int test__dso_data(void);
 | |
| int test__parse_events(void);
 | |
| int test__hists_link(void);
 | |
| int test__python_use(void);
 | |
| int test__bp_signal(void);
 | |
| int test__bp_signal_overflow(void);
 | |
| int test__task_exit(void);
 | |
| int test__sw_clock_freq(void);
 | |
| int test__perf_time_to_tsc(void);
 | |
| int test__code_reading(void);
 | |
| int test__sample_parsing(void);
 | |
| int test__keep_tracking(void);
 | |
| 
 | |
| #endif /* TESTS_H */
 |