Changeset cc91fae in rtems


Ignore:
Timestamp:
Aug 6, 2019, 5:47:57 AM (2 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
886956a
Parents:
8c66acc8
git-author:
Sebastian Huber <sebastian.huber@…> (08/06/19 05:47:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/06/19 05:51:42)
Message:

record: Change thread name encoding

This scheme is easier to decode.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libtrace/record/record-server.c

    r8c66acc8 rcc91fae  
    212212
    213213    for ( j = 0; i < n && j < sizeof( data ); ++j ) {
    214       data = ( data << 8 ) | name[ i ];
     214      data |= name[ i ] << ( j * 8 );
    215215      ++i;
    216216    }
  • cpukit/libtrace/record/record-userext.c

    r8c66acc8 rcc91fae  
    5858
    5959    for ( k = 0; j < n && k < sizeof( data ); ++k ) {
    60       data = ( data << 8 ) | name[ j ];
     60      data |= name[ i ] << ( k * 8 );
    6161      ++j;
    6262    }
  • testsuites/libtests/record01/init.c

    r8c66acc8 rcc91fae  
    157157  {
    158158    .event = TE(0, RTEMS_RECORD_THREAD_NAME),
    159     .data = rtems_build_name('I', 'D', 'L', 'E')
     159    .data = rtems_build_name('E', 'L', 'D', 'I')
    160160  },
    161161  { .event = TE(0, RTEMS_RECORD_THREAD_ID), .data = 0xa010001 },
    162162  {
    163163    .event = TE(0, RTEMS_RECORD_THREAD_NAME),
    164     .data = rtems_build_name('U', 'I', '1', ' ')
     164    .data = rtems_build_name(' ', '1', 'I', 'U')
    165165  },
    166166  { .event = TE(0, RTEMS_RECORD_THREAD_ID), .data = 0xa010002 },
    167167  {
    168168    .event = TE(0, RTEMS_RECORD_THREAD_NAME),
    169     .data = rtems_build_name('n', 't', 'w', 'k')
     169    .data = rtems_build_name('k', 'w', 't', 'n')
    170170  },
    171171  { .event = TE(0, RTEMS_RECORD_THREAD_ID), .data = 0xa010003 },
    172172  {
    173173    .event = TE(0, RTEMS_RECORD_THREAD_NAME),
    174     .data = rtems_build_name('R', 'C', 'R', 'D')
     174    .data = rtems_build_name('D', 'R', 'C', 'R')
    175175  }
    176176};
Note: See TracChangeset for help on using the changeset viewer.