It fixes the error of TRINITY_IOCTL_GET_PROFILE_BUFFER ioctl command.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
__s32 req_id;
__u32 profile_pos;
__u32 profile_size;
- void *profile_buf;
+ __u64 profile_buf;
} __attribute__((packed));
/**
chunk_size = PROFILE_MAXSIZE;
buff.profile_pos = pos;
- buff.profile_buf = (char *) profile->layers + pos;
+ buff.profile_buf = reinterpret_cast<std::uintptr_t>(profile->layers) + pos;
buff.profile_size = chunk_size;
ret = ioctl (this->getDeviceFD (), TRINITY_IOCTL_GET_PROFILE_BUFF, &buff);