linux/kernel/trace
Steven Rostedt (Red Hat) 9a38a8856f tracing: Add a method to pass in trace_array descriptor to option files
In preparation of having the multi buffer instances having their own trace
option flags, the trace option files needs a way to not only pass in the
flag they represent, but also the trace_array descriptor.

A new field is added to the trace_array descriptor called trace_flags_index,
which is a 32 byte character array representing a bit. This array is simply
filled with the index of the array, where

  index_array[n] = n;

Then the address of this array is passed to the file callbacks instead of
the index of the flag index. Then to retrieve both the flag index and the
trace_array descriptor:

  data is the passed in argument.

  index = *(unsigned char *)data;

  data -= index;

  /* Now data points to the address of the array in the trace_array */

  tr = container_of(data, struct trace_array, trace_flags_index);

Suggested-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2015-09-30 15:22:56 -04:00
..
blktrace.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
bpf_trace.c bpf: add support for %s specifier to bpf_trace_printk() 2015-08-28 16:27:27 -07:00
ftrace.c tracing: Move sleep-time and graph-time options out of the core trace_flags 2015-09-30 15:22:42 -04:00
Kconfig
Makefile
power-traces.c
ring_buffer_benchmark.c
ring_buffer.c ring-buffer: Revert "ring-buffer: Get timestamp after event is allocated" 2015-09-03 08:57:12 -04:00
rpm-traces.c
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_entries.h
trace_event_perf.c
trace_events_filter_test.h
trace_events_filter.c
trace_events_trigger.c
trace_events.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
trace_export.c
trace_functions_graph.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
trace_functions.c
trace_irqsoff.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
trace_kdb.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
trace_kprobe.c
trace_mmiotrace.c tracing: Pass trace_array into trace_buffer_unlock_commit() 2015-09-25 17:38:44 -04:00
trace_nop.c
trace_output.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
trace_output.h tracing: Turn seq_print_user_ip() into a static function 2015-09-28 10:16:12 -04:00
trace_printk.c tracing: Remove access to trace_flags in trace_printk.c 2015-09-30 04:35:18 -04:00
trace_probe.c
trace_probe.h kernel/trace_probe: is_good_name can be boolean 2015-09-22 13:11:30 -04:00
trace_sched_switch.c
trace_sched_wakeup.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
trace_selftest_dynamic.c
trace_selftest.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c tracing: Move trace_flags from global to a trace_array field 2015-09-30 15:22:55 -04:00
trace_uprobe.c
trace.c tracing: Add a method to pass in trace_array descriptor to option files 2015-09-30 15:22:56 -04:00
trace.h tracing: Add a method to pass in trace_array descriptor to option files 2015-09-30 15:22:56 -04:00