utds3lab / pemu Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi,
I am trying to install pemu for kernel instrumentaion of my VMs. I followed your instruction to install pemu. When I want to make in the pemu/build folder, I come up with the following error:
CC hw/block/xen_disk.o
In file included from /home/guest/Documents/tools/pemu-master/include/hw/xen/xen_backend.h:7:0,
from /home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:39:
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:109:9: error: unknown type name ‘xc_evtchn’
typedef xc_evtchn *XenEvtchn;
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:110:9: error: unknown type name ‘xc_gnttab’
typedef xc_gnttab *XenGnttab;
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h: In function ‘xen_xc_evtchn_open’:
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:118:5: warning: implicit declaration of function ‘xc_evtchn_open’ [-Wimplicit-function-declaration]
return xc_evtchn_open(logger, open_flags);
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:118:5: warning: nested extern declaration of ‘xc_evtchn_open’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:118:5: warning: return makes pointer from integer without a cast
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h: In function ‘xen_xc_gnttab_open’:
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:124:5: warning: implicit declaration of function ‘xc_gnttab_open’ [-Wimplicit-function-declaration]
return xc_gnttab_open(logger, open_flags);
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:124:5: warning: nested extern declaration of ‘xc_gnttab_open’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:124:5: warning: return makes pointer from integer without a cast
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘destroy_grant’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:166:5: warning: implicit declaration of function ‘xc_gnttab_munmap’ [-Wimplicit-function-declaration]
if (xc_gnttab_munmap(gnt, grant->page, 1) != 0) {
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:166:5: warning: nested extern declaration of ‘xc_gnttab_munmap’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘ioreq_map’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:386:13: warning: implicit declaration of function ‘xc_gnttab_map_grant_refs’ [-Wimplicit-function-declaration]
(gnt, new_maps, domids, refs, ioreq->prot);
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:386:13: warning: nested extern declaration of ‘xc_gnttab_map_grant_refs’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:385:22: warning: assignment makes pointer from integer without a cast
ioreq->pages = xc_gnttab_map_grant_refs
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:402:17: warning: implicit declaration of function ‘xc_gnttab_map_grant_ref’ [-Wimplicit-function-declaration]
(gnt, domids[i], refs[i], ioreq->prot);
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:402:17: warning: nested extern declaration of ‘xc_gnttab_map_grant_ref’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:401:28: warning: assignment makes pointer from integer without a cast
ioreq->page[i] = xc_gnttab_map_grant_ref
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘blk_alloc’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:693:5: warning: implicit declaration of function ‘xc_gnttab_set_max_grants’ [-Wimplicit-function-declaration]
if (xc_gnttab_set_max_grants(xendev->gnttabdev,
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:693:5: warning: nested extern declaration of ‘xc_gnttab_set_max_grants’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘blk_connect’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:854:19: warning: assignment makes pointer from integer without a cast
blkdev->sring = xc_gnttab_map_grant_ref(blkdev->xendev.gnttabdev,
^
/home/guest/Documents/tools/pemu-master/rules.mak:28: recipe for target 'hw/block/xen_disk.o' failed
make: *** [hw/block/xen_disk.o] Error 1
Could you please clarify the first step in installation.
(1.1) Compile and run task-info/task-info.c in the guest OS (1.2) Copy the output to the ./target-i386/PEMU/linux.c { 0xC1731F60, /* task struct root / 432, / offset of task_struct list / 460, / offset of mm / 40, / offset of pgd in mm / 732, / offset of comm */ }; Note: the new process detection approach listed in the paper is not that stable. Instead, we use some process information to help new process detection.
How to compile task-info/task-info.c and which executable to execute ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.