[gem5-users] Re: track the write syscall in the kernel
On full system you can also try to instrument the syscall function symbol, we do something analogous for panic detection: https://github.com/gem5/gem5/blob/f28b2e773f2ee97bf9c755b33aef9befc052d281/src/arch/arm/linux/fs_workload.cc#L207 From: ABD ALRHMAN ABO ALKHEEL via gem5-users Sent: Saturday, October 24, 2020 10:00 PM To: gem5 users mailing list ; gem5-users Cc: ABD ALRHMAN ABO ALKHEEL Subject: [gem5-users] track the write syscall in the kernel Hi All; I want to track the write syscall in order to do some calculations on the written bytes. I just want to know what is the function that does write syscall function and how I can the written bytes from it. Any help would be appreciated. Thanks https://github.com/torvalds/linux/blob/master/fs/read_write.c ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
[gem5-users] Re: track the write syscall in the kernel
Assuming you are asking about SE mode, I think this is what you are looking for: https://gem5.googlesource.com/public/gem5/+/refs/heads/develop/src/sim/syscall_emul.hh#2412 ? Matt On Sat, Oct 24, 2020 at 4:00 PM ABD ALRHMAN ABO ALKHEEL via gem5-users < gem5-users@gem5.org> wrote: > Hi All; > > I want to track the write syscall in order to do some calculations on the > written bytes. I just want to know what is the function that does write > syscall function and how I can the written bytes from it. > > Any help would be appreciated. > > Thanks > > https://github.com/torvalds/linux/blob/master/fs/read_write.c > ___ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s