syscall and offload tracking (disabled by default)

This commit is contained in:
Balazs Gerofi
2016-12-03 16:00:36 +09:00
parent 4ab37dd34a
commit f78d031e64
3 changed files with 146 additions and 0 deletions

View File

@@ -232,6 +232,8 @@ enum mpol_rebind_step {
#include <waitq.h>
#include <futex.h>
//#define TRACK_SYSCALLS
struct resource_set;
struct process_hash;
struct thread_hash;
@@ -609,6 +611,14 @@ struct thread {
fp_regs_struct *fp_regs;
int in_syscall_offload;
#ifdef TRACK_SYSCALLS
int socc_enabled;
uint64_t *syscall_times;
uint32_t *syscall_cnts;
uint64_t *offload_times;
uint32_t *offload_cnts;
#endif // TRACK_SYSCALLS
// signal
struct sig_common *sigcommon;
sigset_t sigmask;