Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2014 11:46:08 GMT
From:      op@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r272399 - soc2014/op/freebsd-base/sys/kern
Message-ID:  <201408141146.s7EBk8XY013441@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: op
Date: Thu Aug 14 11:46:08 2014
New Revision: 272399
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=272399

Log:
  KSP: added more debug output
  
  Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
  
  git: https://github.com/opntr/opBSD/tree/op/gsoc2014/smap+kpatch

Modified:
  soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c

Modified: soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c
==============================================================================
--- soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c	Thu Aug 14 11:46:00 2014	(r272398)
+++ soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c	Thu Aug 14 11:46:08 2014	(r272399)
@@ -319,6 +319,9 @@
 	rem = p->patchable_size - p->patch_size;
 	patchable = p->patchable + p->patch_size;
 
+	DBG("rem: %d\n", rem);
+	DBG("nop9: %d\n", rem / KSP_MAX_NOPLEN);
+
 	for (i = rem / KSP_MAX_NOPLEN; i > 0; i -= KSP_MAX_NOPLEN) {
 		memcpy(patchable,
 		    selfpatch_nop_table[KSP_MAX_NOPLEN],
@@ -327,6 +330,7 @@
 	}
 
 	rem %= KSP_MAX_NOPLEN;
+	DBG("rem: %d -> nop%d\n", rem, rem);
 	memcpy(patchable, selfpatch_nop_table[rem], rem);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408141146.s7EBk8XY013441>