You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had fun reading you blog about ministrace. I tried to compile it but end up with errors.
Could you take a look please?
root@oracle1 ministrace]# make
./gen_tables.py /usr/src/linux/
Traceback (most recent call last):
File "./gen_tables.py", line 109, in ?
sys.exit(main(sys.argv[1:]))
File "./gen_tables.py", line 104, in main
syscall_numbers = do_syscall_numbers(os.path.join(linux_dir, unistd_h))
File "./gen_tables.py", line 9, in do_syscall_numbers
for line in open(unistd_h):
IOError: [Errno 2] No such file or directory: '/usr/src/linux/arch/x86/include/asm/unistd_64.h'
make: *** [syscallents.h] Error 1
[root@oracle1 ministrace]# uname -a
Linux xxxxxxxxxxx 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@oracle1 ministrace]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
if it helps, this is what I have for unistd on the system
Activity
ceneblock commentedon Apr 26, 2016
You need to modify the python file.
def main(args): if not args: print >>sys.stderr, "Usage: %s /path/to/linux-2.6" % (sys.argv[0],) return 1 linux_dir = args[0] if os.uname()[4] == 'x86_64': unistd_h = "asm/unistd_64.h" else: unistd_h = "asm/unistd_32.h" syscall_numbers = do_syscall_numbers(os.path.join(linux_dir, unistd_h)) syscall_types = find_args(linux_dir) write_output('syscallents.h', syscall_types, syscall_numbers)Please note that python is white space sensitive
Finally, change
LINUX_SRC=in the Makefile to/usr/includeI think in your case, you should change
asm/unistd_64.htoasm-x86_64/unistd.hin the Python file.