dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/kernel/trace
Pekka Paalanen bd8ac686c7 ftrace: mmiotrace, updates
here is a patch that makes mmiotrace work almost well within the tracing
framework. The patch applies on top of my previous patch. I have my own
output formatting in place now.

Summary of changes:
- fix the NULL dereference that was due to not calling tracing_reset()
- add print_line() callback into struct tracer
- implement print_line() for mmiotrace, producing up-to-spec text
- add my output header, but that is not really called in the right place
- rewrote the main structs in mmiotrace
- added two new trace entry types: TRACE_MMIO_RW and TRACE_MMIO_MAP
- made some functions in trace.c non-static
- check current==NULL in tracing_generic_entry_update()
- fix(?) comparison in trace_seq_printf()

Things seem to work fine except a few issues. Markers (text lines injected
into mmiotrace log) are missing, I did not feel hacking them in before we
have variable length entries. My output header is printed only for 'trace'
file, but not 'trace_pipe'. For some reason, despite my quick fix,
iter->trace is NULL in print_trace_line() when called from 'trace_pipe'
file, which means I don't get proper output formatting.

I only tried by loading nouveau.ko, which just detects the card, and that
is traced fine. I didn't try further. Map, two reads and unmap. Works
perfectly.

I am missing the information about overflows, I'd prefer to have a
counter for lost events. I didn't try, but I guess currently there is no
way of knowning when it overflows?

So, not too far from being fully operational, it seems :-)
And looking at the diffstat, there also is some 700-900 lines of user space
code that just became obsolete.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-05-24 11:24:53 +02:00
..
Kconfig ftrace: add have dynamic ftrace config for archs 2008-05-23 22:49:18 +02:00
Makefile ftrace: add mmiotrace plugin 2008-05-24 11:22:43 +02:00
ftrace.c ftrace: cleanups 2008-05-23 22:36:37 +02:00
trace.c ftrace: mmiotrace, updates 2008-05-24 11:24:53 +02:00
trace.h ftrace: mmiotrace, updates 2008-05-24 11:24:53 +02:00
trace_functions.c ftrace: fix comm on function trace output 2008-05-23 21:52:12 +02:00
trace_irqsoff.c ftrace: irqsoff use raw_smp_processor_id 2008-05-23 21:13:41 +02:00
trace_mmiotrace.c ftrace: mmiotrace, updates 2008-05-24 11:24:53 +02:00
trace_sched_switch.c Port ftrace to markers 2008-05-23 22:29:25 +02:00
trace_sched_wakeup.c Port ftrace to markers 2008-05-23 22:29:25 +02:00
trace_selftest.c ftrace: support for PowerPC 2008-05-23 22:43:11 +02:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00