Changeset 5f600dd in rtems-libbsd


Ignore:
Timestamp:
Oct 24, 2012, 8:40:19 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
2b640ee
Parents:
34e1fb2
Message:

netstat: Enable use of kvm again

The code committed has some debug information enabled. It ends with
an odd reference to address 0x1.

Location:
freebsd-userspace/commands/usr.bin/netstat
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • freebsd-userspace/commands/usr.bin/netstat/main.c

    r34e1fb2 r5f600dd  
    326326                                         atalkprotox, NULL };
    327327#else
    328                                 };
     328                                NULL };
    329329#endif
    330330
     
    10881088#endif
    10891089
    1090 #ifndef __rtems__
    10911090/*
    10921091 * Read kernel memory, return 0 on success.
     
    10961095{
    10971096        char errbuf[_POSIX2_LINE_MAX];
     1097#ifdef __rtems__
     1098        printf( "kread( %p to %p for %d)\n", (void *)addr, buf, size );
     1099#endif
    10981100
    10991101        if (kvmd == NULL) {
     
    11281130        return (0);
    11291131}
    1130 #endif
    11311132
    11321133const char *
  • freebsd-userspace/commands/usr.bin/netstat/netstat.h

    r34e1fb2 r5f600dd  
    6868extern int      live;   /* true if we are examining a live system */
    6969
    70 #ifdef __rtems__
    71 #define kread(_x, _y, _z) (0)
    72 #else
    7370int     kread(u_long addr, void *buf, size_t size);
    74 #endif
    7571const char *plural(uintmax_t);
    7672const char *plurales(uintmax_t);
  • freebsd-userspace/commands/usr.bin/netstat/netstat_route.c

    r34e1fb2 r5f600dd  
    231231                        if (rnh == NULL)
    232232                                continue;
     233#ifdef __rtems__
     234                        printf( "rnh %p %p\n", (void *)rnhp, (void *)rnh );
     235                        /* We get a 1 here on some fields. Why? XXX */
     236                        if (rnh == 1)
     237                                continue;
     238#endif
    233239                        /* Read the rnh data. */
    234240                        if (kget(rnh, head) != 0)
Note: See TracChangeset for help on using the changeset viewer.