From ed6d5b0bad7c986a32b3ffa35bc29bfe98a8a1a6 Mon Sep 17 00:00:00 2001 From: SimoneDutto Date: Sat, 4 Jul 2020 11:02:23 +0200 Subject: [PATCH] Add support to pmctrack --- kernel_module/src/f_list.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel_module/src/f_list.c b/kernel_module/src/f_list.c index ea35841..1fd9c12 100644 --- a/kernel_module/src/f_list.c +++ b/kernel_module/src/f_list.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "../include/f_list.h" @@ -26,12 +27,18 @@ static LIST_HEAD(f_list); static unsigned int* get_randoms(unsigned int id){ int i = 0; unsigned int *fts = NULL; + uint64_t value; fts = kzalloc(NUM*sizeof(unsigned int), GFP_KERNEL); if(fts == NULL) return NULL; + for(i=0;i