Lines Matching defs:ktr_header
90 int fetchprocinfo(struct ktr_header *, u_int *);
91 u_int findabi(struct ktr_header *);
93 void dumpheader(struct ktr_header *, u_int);
95 void dumptimespec(struct ktr_header *kth);
133 static struct ktr_header ktr_header;
433 while (fread_tail(&ktr_header, sizeof(struct ktr_header), 1)) {
434 if (ktr_header.ktr_type & KTR_VERSIONED) {
435 ktr_header.ktr_type &= ~KTR_VERSIONED;
436 version = ktr_header.ktr_version;
439 if (ktr_header.ktr_type & KTR_DROP) {
440 ktr_header.ktr_type &= ~KTR_DROP;
444 ktr_header.ktr_pid,
445 ktr_header.ktr_tid > 0 ?
446 (lwpid_t)ktr_header.ktr_tid : 0,
447 MAXCOMLEN, ktr_header.ktr_comm);
451 ktr_header.ktr_pid, MAXCOMLEN,
452 ktr_header.ktr_comm);
456 if ((ktrlen = ktr_header.ktr_len) < 0)
469 if (fetchprocinfo(&ktr_header, (u_int *)m) != 0)
471 if (pid && ktr_header.ktr_pid != pid &&
472 ktr_header.ktr_tid != pid)
474 if ((trpoints & (1<<ktr_header.ktr_type)) == 0)
476 sv_flags = findabi(&ktr_header);
477 dumpheader(&ktr_header, sv_flags);
479 switch (ktr_header.ktr_type) {
547 fetchprocinfo(struct ktr_header *kth, u_int *flags)
582 findabi(struct ktr_header *kth)
629 dumptimespec(struct ktr_header *kth)
663 dumpheader(struct ktr_header *kth, u_int sv_flags)