profile: refactor display code and fix ARM support

Change-Id: Ic48102c42abe17eed014f2bfe7523d0d6f03c2e9
This commit is contained in:
Balazs Gerofi
2019-08-13 15:23:09 +09:00
committed by Masamichi Takagi
parent c3c57940ba
commit 6aa7b50e26
3 changed files with 103 additions and 182 deletions

View File

@ -5,10 +5,9 @@
#define PROFILE_ENABLE
#ifdef PROFILE_ENABLE
#define PROFILE_SYSCALL_MAX 300
#define PROFILE_SYSCALL_MAX 2000
#define PROFILE_OFFLOAD_MAX (PROFILE_SYSCALL_MAX << 1)
#define PROFILE_EVENT_MIN PROFILE_OFFLOAD_MAX
#define __NR_profile 701
#define PROF_JOB 0x40000000
#define PROF_PROC 0x80000000
@ -47,6 +46,8 @@ enum profile_event_type {
PROFILE_EVENT_MAX /* Should be the last event type */
};
#define __NR_profile PROFILE_EVENT_MAX
struct thread;
struct process;