Changeset 172f2ac in rtems-libbsd


Ignore:
Timestamp:
Jan 12, 2017, 1:56:23 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
a241ea8
Parents:
fb288fa
git-author:
Sebastian Huber <sebastian.huber@…> (01/12/17 13:56:23)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/13/17 08:20:43)
Message:

Use thread name support

Update #2858.

Files:
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/kern_intr.c

    rfb288fa r172f2ac  
    6767  #include <machine/rtems-bsd-thread.h>
    6868  #define RTEMSBSD_SWI_WAKEUP_EVENT RTEMS_EVENT_31
     69  #undef ticks
     70  #include <rtems/score/threadimpl.h>
    6971#endif /* __rtems__ */
    7072#include <machine/stdarg.h>
     
    196198
    197199        /* Update name and priority. */
     200#ifndef __rtems__
    198201        strlcpy(td->td_name, ie->ie_fullname, sizeof(td->td_name));
     202#else /* __rtems__ */
     203        _Thread_Set_name(td->td_thread, ie->ie_fullname);
     204#endif /* __rtems__ */
    199205#ifdef KTR
    200206        sched_clear_tdname(td);
  • freebsd/sys/sys/proc.h

    rfb288fa r172f2ac  
    224224        Thread_Control *td_thread;
    225225        struct rtems_bsd_program_control *td_prog_ctrl;
    226         char td_name[32];
    227226#endif /* __rtems__ */
    228227#ifndef __rtems__
  • libbsd.py

    rfb288fa r172f2ac  
    7070            'rtems/rtems-bsd-rc-conf-pf.c',
    7171            'rtems/rtems-bsd-rc-conf.c',
    72             'rtems/rtems-bsd-shell.c',
    7372            'rtems/rtems-bsd-shell-arp.c',
    7473            'rtems/rtems-bsd-shell-ifconfig.c',
  • libbsd_waf.py

    rfb288fa r172f2ac  
    11111111              'rtemsbsd/rtems/rtems-bsd-shell-tcpdump.c',
    11121112              'rtemsbsd/rtems/rtems-bsd-shell-vmstat.c',
    1113               'rtemsbsd/rtems/rtems-bsd-shell.c',
    11141113              'rtemsbsd/rtems/rtems-bsd-syscall-api.c',
    11151114              'rtemsbsd/rtems/rtems-kernel-assert.c',
  • rtemsbsd/include/rtems/netcmds-config.h

    rfb288fa r172f2ac  
    2525extern rtems_shell_cmd_t rtems_shell_ARP_Command;
    2626
    27 extern rtems_shell_cmd_t rtems_shell_BSD_Command;
    28 
    2927extern rtems_shell_cmd_t rtems_shell_PFCTL_Command;
    3028
  • rtemsbsd/rtems/rtems-kernel-thread.c

    rfb288fa r172f2ac  
    234234        rtems_id task_id;
    235235        struct thread *td;
    236         char name[sizeof(td->td_name)];
     236        char name[32];
    237237
    238238        BSD_ASSERT(pages >= 0);
     
    257257                BSD_ASSERT(td != NULL);
    258258
    259                 memcpy(td->td_name, name, sizeof(name));
     259                _Thread_Set_name(thread, name);
    260260
    261261                if (rtems_bsd_thread_ready_to_start) {
  • testsuite/include/rtems/bsd/test/default-network-init.h

    rfb288fa r172f2ac  
    359359  &bsp_interrupt_shell_command, \
    360360  &rtems_shell_ARP_Command, \
    361   &rtems_shell_BSD_Command, \
    362361  &rtems_shell_HOSTNAME_Command, \
    363362  &rtems_shell_PING_Command, \
  • testsuite/media01/test_main.c

    rfb288fa r172f2ac  
    201201  &bsp_interrupt_shell_command, \
    202202  &rtems_shell_ARP_Command, \
    203   &rtems_shell_BSD_Command, \
    204203  &rtems_shell_HOSTNAME_Command, \
    205204  &rtems_shell_PING_Command, \
  • testsuite/rcconf02/test_main.c

    rfb288fa r172f2ac  
    234234#define CONFIGURE_SHELL_USER_COMMANDS \
    235235  &bsp_interrupt_shell_command, \
    236   &rtems_shell_BSD_Command, \
    237236  &rtems_shell_HOSTNAME_Command, \
    238237  &rtems_shell_PING_Command, \
  • testsuite/thread01/test_main.c

    rfb288fa r172f2ac  
    7575        assert(td_0 == td_1);
    7676        assert(td_0 == td_2);
    77         assert(strcmp(&td_0->td_name[0], name) == 0);
     77        assert(strcmp(td_0->td_thread->Join_queue.Queue.name, name) == 0);
    7878}
    7979
Note: See TracChangeset for help on using the changeset viewer.