version 1.86, 2016/01/02 13:22:52 |
version 1.87, 2016/04/25 19:18:41 |
|
|
#endif |
#endif |
void print_sock_details(struct kinfo_file *); |
void print_sock_details(struct kinfo_file *); |
void socktrans(struct kinfo_file *); |
void socktrans(struct kinfo_file *); |
void systracetrans(struct kinfo_file *); |
|
void vtrans(struct kinfo_file *); |
void vtrans(struct kinfo_file *); |
const char *inet6_addrstr(struct in6_addr *); |
const char *inet6_addrstr(struct in6_addr *); |
int signame_to_signum(char *); |
int signame_to_signum(char *); |
|
|
if (checkfile == 0) |
if (checkfile == 0) |
kqueuetrans(kf); |
kqueuetrans(kf); |
break; |
break; |
case DTYPE_SYSTRACE: |
|
if (checkfile == 0) |
|
systracetrans(kf); |
|
break; |
|
default: |
default: |
if (vflg) { |
if (vflg) { |
warnx("unknown file type %d for file %d of pid %ld", |
warnx("unknown file type %d for file %d of pid %ld", |
|
|
kf->kq_count, |
kf->kq_count, |
(kf->kq_state & KQ_SEL) ? "S" : "", |
(kf->kq_state & KQ_SEL) ? "S" : "", |
(kf->kq_state & KQ_SLEEP) ? "W" : ""); |
(kf->kq_state & KQ_SLEEP) ? "W" : ""); |
return; |
|
} |
|
|
|
void |
|
systracetrans(struct kinfo_file *kf) |
|
{ |
|
PREFIX(kf->fd_fd); |
|
|
|
printf(" "); |
|
|
|
printf("systrace "); |
|
hide((void *)(uintptr_t)kf->f_data); |
|
printf(" npol %d\n", kf->str_npolicies); |
|
return; |
return; |
} |
} |
|
|