[PATCH] Add low level event recording support

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jan 22 13:34:55 UTC 2019


Hello Chris,

On 20/12/2018 07:46, Sebastian Huber wrote:
>>
>> Sorry but I have no time to review this and consider it until next year.
>
> No problem, take your time. I work on this since April this year from 
> time to time, so it can wait a couple of more weeks. 

had you time to look at this?

The focus of this new stuff is the recording of high frequency events on 
multiple processors. It doesn't deal with filtering or event generation.

Attached is a very simple example program to get the records via a TCP 
stream from the target. It outputs text like this:

6769.471369714:4:THREAD_ID:a01000a
6769.471369714:4:THREAD_QUEUE_ENQUEUE:7df04b1c
6769.471369734:5:UMA_FREE_PTR:7ee6ce00
6769.471369734:5:UMA_FREE_ZONE:7fee5000
6769.471370660:4:THREAD_STATE_SET:1
6769.471370660:4:THREAD_ID:a01000a
6769.471371180:5:THREAD_ID:a01000a
6769.471371180:5:THREAD_QUEUE_SURRENDER:7df04b1c
6769.471372274:4:THREAD_STATE_CLEAR:30015fff
6769.471372274:4:THREAD_ID:a01000a
6769.471372476:5:THREAD_ID:a010029
6769.471372476:5:THREAD_QUEUE_ENQUEUE:7dd24e84
6769.471373040:5:THREAD_STATE_SET:1
6769.471373040:5:THREAD_ID:a010029
6769.471374835:5:THREAD_SWITCH_IN:9010017
6769.471374835:5:THREAD_STACK_CURRENT:1890
6769.471374835:5:THREAD_SWITCH_OUT:a010029
6769.471378612:4:THREAD_ID:a010029
6769.471378612:4:THREAD_QUEUE_SURRENDER:7dd24e84
6769.471380229:4:THREAD_STATE_CLEAR:30015fff
6769.471380229:4:THREAD_ID:a010029
6769.471384143:4:ETHER_INPUT:7dd77100
6769.471384246:5:THREAD_SWITCH_IN:a010029
6769.471384246:5:THREAD_STACK_CURRENT:1ce0
6769.471384246:5:THREAD_SWITCH_OUT:9010017
6769.471384591:4:IP_INPUT:7dd77100
6769.471385216:5:TCP_OUTPUT:7dd21000
6769.471385232:4:TCP_INPUT:7dd77100
6769.471387009:5:WRITE:77
6769.471388103:4:TCP_OUTPUT:7dd21000
6769.471388337:5:RECVFROM:76
6769.471389260:4:UMA_ALLOC_PTR:7d210300
6769.471389260:4:UMA_ALLOC_ZONE:7fee6900
6769.471389760:4:IP_OUTPUT:7d210300
6769.471390693:4:ETHER_OUTPUT:7d210300
6769.471391167:4:UMA_ALLOC_PTR:7d22d8c0
6769.471391167:4:UMA_ALLOC_ZONE:7fee5c00
6769.471393095:4:ETHER_INPUT:7da55900
6769.471393594:4:IP_INPUT:7da55900
6769.471394090:4:TCP_INPUT:7da55900
6769.471394277:5:UMA_FREE_PTR:7da57900
6769.471394277:5:UMA_FREE_ZONE:7fee5000
6769.471398185:4:ETHER_INPUT:7da9e900
6769.471398534:4:IP_INPUT:7da9e900
6769.471399020:4:TCP_INPUT:7da9e90

A potential GSoC project could be to use visualize this.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rtems-record-New-program.patch
Type: text/x-patch
Size: 45629 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190122/b912f93d/attachment-0001.bin>


More information about the devel mailing list