Browse files

Add peek&poke to the tracer payloads since they are developer payload…

…s anyways, right ?
  • Loading branch information...
1 parent 9360bef commit 824d8d8b17e650bdce96829f2e37161ce09610f7 @kakaroto committed Nov 30, 2010
Showing with 12 additions and 0 deletions.
  1. +4 −0 payload_trace_all_sc_calls.S
  2. +4 −0 payload_trace_hypercalls.S
  3. +4 −0 payload_trace_syscalls.S
View
4 payload_trace_all_sc_calls.S
@@ -22,6 +22,7 @@
#include "hook_hvsc.h.S"
RESIDENT_AREA_START()
+#include "dev_syscalls.h.S"
#include "memory_patching_res.h.S"
#include "send_eth_res.h.S"
#include "hvsc_handler.h.S"
@@ -48,6 +49,9 @@ payload_main:
LOAD_FUNC_PTR(send_eth)
INIT_SEND_ETH(%r30)
+ ADD_SYSCALL (%r30, syscall_peek_desc, 6)
+ ADD_SYSCALL (%r30, syscall_poke_desc, 7)
+
APPLY_PATCHES(%r30, %r31)
// Replace hvsc after we copy our handler to the resident area
// because another thread might be running at the same time
View
4 payload_trace_hypercalls.S
@@ -22,6 +22,7 @@
#include "hook_hvsc.h.S"
RESIDENT_AREA_START()
+#include "dev_syscalls.h.S"
#include "memory_patching_res.h.S"
#include "send_eth_res.h.S"
#include "hvsc_handler.h.S"
@@ -48,6 +49,9 @@ payload_main:
LOAD_FUNC_PTR(send_eth)
INIT_SEND_ETH(%r30)
+ ADD_SYSCALL (%r30, syscall_peek_desc, 6)
+ ADD_SYSCALL (%r30, syscall_poke_desc, 7)
+
APPLY_PATCHES(%r30, %r31)
// Replace hvsc after we copy our handler to the resident area
View
4 payload_trace_syscalls.S
@@ -21,6 +21,7 @@
#include "memory_patching.h.S"
RESIDENT_AREA_START()
+#include "dev_syscalls.h.S"
#include "memory_patching_res.h.S"
#include "send_eth_res.h.S"
#include "syscall_handler.h.S"
@@ -46,6 +47,9 @@ payload_main:
LOAD_FUNC_PTR(send_eth)
INIT_SEND_ETH(%r30)
+ ADD_SYSCALL (%r30, syscall_peek_desc, 6)
+ ADD_SYSCALL (%r30, syscall_poke_desc, 7)
+
APPLY_PATCHES(%r30, %r31)
// epilog

0 comments on commit 824d8d8

Please sign in to comment.