trace_selftest.c (06fa75ab566c50e01bfd7b055bde85cf9b1bc98a) | trace_selftest.c (d05cdb25d80f06f77aa6bddb53cd1390d4d91a0b) |
---|---|
1/* Include in trace.c */ 2 3#include <linux/kthread.h> 4#include <linux/delay.h> 5 6static inline int trace_valid_entry(struct trace_entry *entry) 7{ 8 switch (entry->type) { --- 93 unchanged lines hidden (view full) --- 102 103 return ret; 104} 105 106#ifdef CONFIG_FTRACE 107 108#ifdef CONFIG_DYNAMIC_FTRACE 109 | 1/* Include in trace.c */ 2 3#include <linux/kthread.h> 4#include <linux/delay.h> 5 6static inline int trace_valid_entry(struct trace_entry *entry) 7{ 8 switch (entry->type) { --- 93 unchanged lines hidden (view full) --- 102 103 return ret; 104} 105 106#ifdef CONFIG_FTRACE 107 108#ifdef CONFIG_DYNAMIC_FTRACE 109 |
110#define DYN_FTRACE_TEST_NAME trace_selftest_dynamic_test_func | |
111#define __STR(x) #x 112#define STR(x) __STR(x) | 110#define __STR(x) #x 111#define STR(x) __STR(x) |
113static int DYN_FTRACE_TEST_NAME(void) 114{ 115 /* used to call mcount */ 116 return 0; 117} | |
118 119/* Test dynamic code modification and ftrace filters */ 120int trace_selftest_startup_dynamic_tracing(struct tracer *trace, 121 struct trace_array *tr, 122 int (*func)(void)) 123{ 124 unsigned long count; 125 int ret; --- 409 unchanged lines hidden --- | 112 113/* Test dynamic code modification and ftrace filters */ 114int trace_selftest_startup_dynamic_tracing(struct tracer *trace, 115 struct trace_array *tr, 116 int (*func)(void)) 117{ 118 unsigned long count; 119 int ret; --- 409 unchanged lines hidden --- |