This test case checks frequency conversion of hrtimer-based software clock events (cpu-clock, task-clock) have valid (non-1) periods. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1363574507-18808-2-git-send-email-namhyung@kernel.org [ committer note: Moved .sample_freq to outside named init block to cope with some gcc versions ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			743 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			743 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef TESTS_H
 | 
						|
#define TESTS_H
 | 
						|
 | 
						|
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);
 | 
						|
 | 
						|
#endif /* TESTS_H */
 |