Hello, everyone. I use alloc_bootmem() in profile.c to allocate a big memory at function profile_init(), how I know whether it is success? The following is my code: <div>// at kernel/profile.c</div><div>ctxsw_A = (struct ctxsw_rec *)alloc_bootmem(sizeof(struct ctxsw_rec)*CTXSW);</div>
<div><br></div><div>ctxsw_rec is a struct which declared in include/linux/profile.h, CTXSW = 4>>10</div>