android-rooting-tools / android_run_root_shell

567 stars 260 forks source link

syscall_perf_event_open function #25

Open ali-zohrevand opened 10 years ago

ali-zohrevand commented 10 years ago

hi .. in the perf_event.c we have this function syscall_perf_event_open and this code in line 173 uint64_t buf[10] = { 0x4800000001, offset, 0, 0, 0, 0x300 }; then we have this syscall(__NR_perf_event_open, buf, 0, -1, -1, 0); what this syscall do?? what is the meaning of those parameter which we send 0,-1 ,-1,0? thanks a lot for helping