Move syscall_tampered to defs.h

* syscall.c (syscall_tampered): Move ...
* defs.h: ... here.
This commit is contained in:
Elvira Khabirova 2018-01-07 05:38:46 +03:00 committed by Dmitry V. Levin
parent 2e351de149
commit fef5bc0ef2
2 changed files with 1 additions and 6 deletions

1
defs.h
View File

@ -266,6 +266,7 @@ struct tcb {
#define inject(tcp) ((tcp)->qual_flg & QUAL_INJECT)
#define filtered(tcp) ((tcp)->flags & TCB_FILTERED)
#define hide_log(tcp) ((tcp)->flags & TCB_HIDE_LOG)
#define syscall_tampered(tcp) ((tcp)->flags & TCB_TAMPERED)
#include "xlat.h"

View File

@ -713,12 +713,6 @@ syscall_entering_finish(struct tcb *tcp, int res)
gettimeofday(&tcp->etime, NULL);
}
static bool
syscall_tampered(struct tcb *tcp)
{
return tcp->flags & TCB_TAMPERED;
}
/* Returns:
* 0: "bail out".
* 1: ok.