[BACK]Return to kern_ktrace.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/kern_ktrace.c between version 1.122 and 1.123

version 1.122, 2007/04/26 16:27:32 version 1.123, 2007/06/01 20:24:21
Line 819  ktruser(struct lwp *l, const char *id, v
Line 819  ktruser(struct lwp *l, const char *id, v
 }  }
   
 void  void
   ktrkuser(struct lwp *l, const char *id, void *addr, size_t len)
   {
           struct ktrace_entry *kte;
           struct ktr_user *ktp;
           int error;
   
           if (len > KTR_USER_MAXLEN)
                   return;
   
           error = ktealloc(&kte, (void *)&ktp, l, KTR_USER, sizeof(*ktp) + len);
           if (error != 0)
                   return;
   
           strlcpy(ktp->ktr_id, id, KTR_USER_MAXIDLEN);
   
           memcpy(ktp + 1, addr, len);
   
           ktraddentry(l, kte, KTA_WAITOK);
   }
   
   void
 ktrmmsg(struct lwp *l, const void *msgh, size_t size)  ktrmmsg(struct lwp *l, const void *msgh, size_t size)
 {  {
         ktrkmem(l, KTR_MMSG, msgh, size);          ktrkmem(l, KTR_MMSG, msgh, size);

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123

CVSweb <webmaster@jp.NetBSD.org>