Skip to content

Commit 68114e5

Browse files
committed
Merge tag 'trace-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing updates from Steven Rostedt: "Most of the changes were largely clean ups, and some documentation. But there were a few features that were added: Uprobes now work with event triggers and multi buffers and have support under ftrace and perf. The big feature is that the function tracer can now be used within the multi buffer instances. That is, you can now trace some functions in one buffer, others in another buffer, all functions in a third buffer and so on. They are basically agnostic from each other. This only works for the function tracer and not for the function graph trace, although you can have the function graph tracer running in the top level buffer (or any tracer for that matter) and have different function tracing going on in the sub buffers" * tag 'trace-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (45 commits) tracing: Add BUG_ON when stack end location is over written tracepoint: Remove unused API functions Revert "tracing: Move event storage for array from macro to standalone function" ftrace: Constify ftrace_text_reserved tracepoints: API doc update to tracepoint_probe_register() return value tracepoints: API doc update to data argument ftrace: Fix compilation warning about control_ops_free ftrace/x86: BUG when ftrace recovery fails ftrace: Warn on error when modifying ftrace function ftrace: Remove freelist from struct dyn_ftrace ftrace: Do not pass data to ftrace_dyn_arch_init ftrace: Pass retval through return in ftrace_dyn_arch_init() ftrace: Inline the code from ftrace_dyn_table_alloc() ftrace: Cleanup of global variables ftrace_new_pgs and ftrace_update_cnt tracing: Evaluate len expression only once in __dynamic_array macro tracing: Correctly expand len expressions from __dynamic_array macro tracing/module: Replace include of tracepoint.h with jump_label.h in module.h tracing: Fix event header migrate.h to include tracepoint.h tracing: Fix event header writeback.h to include tracepoint.h tracing: Warn if a tracepoint is not set via debugfs ...
2 parents 59ecc26 + 3862807 commit 68114e5

File tree

36 files changed

+739
-591
lines changed

36 files changed

+739
-591
lines changed

Documentation/trace/ftrace-design.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,8 @@ Every arch has an init callback function. If you need to do something early on
358358
to initialize some state, this is the time to do that. Otherwise, this simple
359359
function below should be sufficient for most people:
360360

361-
int __init ftrace_dyn_arch_init(void *data)
361+
int __init ftrace_dyn_arch_init(void)
362362
{
363-
/* return value is done indirectly via data */
364-
*(unsigned long *)data = 0;
365-
366363
return 0;
367364
}
368365

arch/arm/kernel/ftrace.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,8 @@ int ftrace_make_nop(struct module *mod,
156156
return ret;
157157
}
158158

159-
int __init ftrace_dyn_arch_init(void *data)
159+
int __init ftrace_dyn_arch_init(void)
160160
{
161-
*(unsigned long *)data = 0;
162-
163161
return 0;
164162
}
165163
#endif /* CONFIG_DYNAMIC_FTRACE */

arch/blackfin/kernel/ftrace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ int ftrace_update_ftrace_func(ftrace_func_t func)
6565
return ftrace_modify_code(ip, call, sizeof(call));
6666
}
6767

68-
int __init ftrace_dyn_arch_init(void *data)
68+
int __init ftrace_dyn_arch_init(void)
6969
{
70-
/* return value is done indirectly via data */
71-
*(unsigned long *)data = 0;
72-
7370
return 0;
7471
}
7572

arch/ia64/kernel/ftrace.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,7 @@ int ftrace_update_ftrace_func(ftrace_func_t func)
198198
}
199199

200200
/* run from kstop_machine */
201-
int __init ftrace_dyn_arch_init(void *data)
201+
int __init ftrace_dyn_arch_init(void)
202202
{
203-
*(unsigned long *)data = 0;
204-
205203
return 0;
206204
}

arch/metag/kernel/ftrace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr)
117117
}
118118

119119
/* run from kstop_machine */
120-
int __init ftrace_dyn_arch_init(void *data)
120+
int __init ftrace_dyn_arch_init(void)
121121
{
122-
/* The return code is returned via data */
123-
writel(0, data);
124-
125122
return 0;
126123
}

arch/microblaze/kernel/ftrace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,8 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr)
171171
return ret;
172172
}
173173

174-
int __init ftrace_dyn_arch_init(void *data)
174+
int __init ftrace_dyn_arch_init(void)
175175
{
176-
/* The return code is retured via data */
177-
*(unsigned long *)data = 0;
178-
179176
return 0;
180177
}
181178

arch/mips/kernel/ftrace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,14 @@ int ftrace_update_ftrace_func(ftrace_func_t func)
201201
return ftrace_modify_code(FTRACE_CALL_IP, new);
202202
}
203203

204-
int __init ftrace_dyn_arch_init(void *data)
204+
int __init ftrace_dyn_arch_init(void)
205205
{
206206
/* Encode the instructions when booting */
207207
ftrace_dyn_arch_init_insns();
208208

209209
/* Remove "b ftrace_stub" to ensure ftrace_caller() is executed */
210210
ftrace_modify_code(MCOUNT_ADDR, INSN_NOP);
211211

212-
/* The return code is retured via data */
213-
*(unsigned long *)data = 0;
214-
215212
return 0;
216213
}
217214
#endif /* CONFIG_DYNAMIC_FTRACE */

arch/powerpc/kernel/ftrace.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,13 +532,8 @@ void arch_ftrace_update_code(int command)
532532
ftrace_disable_ftrace_graph_caller();
533533
}
534534

535-
int __init ftrace_dyn_arch_init(void *data)
535+
int __init ftrace_dyn_arch_init(void)
536536
{
537-
/* caller expects data to be zero */
538-
unsigned long *p = data;
539-
540-
*p = 0;
541-
542537
return 0;
543538
}
544539
#endif /* CONFIG_DYNAMIC_FTRACE */

arch/s390/kernel/ftrace.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ int ftrace_update_ftrace_func(ftrace_func_t func)
130130
return 0;
131131
}
132132

133-
int __init ftrace_dyn_arch_init(void *data)
133+
int __init ftrace_dyn_arch_init(void)
134134
{
135-
*(unsigned long *) data = 0;
136135
return 0;
137136
}
138137

arch/sh/kernel/ftrace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,8 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr)
272272
return ftrace_modify_code(rec->ip, old, new);
273273
}
274274

275-
int __init ftrace_dyn_arch_init(void *data)
275+
int __init ftrace_dyn_arch_init(void)
276276
{
277-
/* The return code is retured via data */
278-
__raw_writel(0, (unsigned long)data);
279-
280277
return 0;
281278
}
282279
#endif /* CONFIG_DYNAMIC_FTRACE */

0 commit comments

Comments
 (0)