Lines Matching refs:psinfo

1571 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,  in fill_psinfo()  argument
1579 memset(psinfo, 0, sizeof(struct elf_prpsinfo)); in fill_psinfo()
1584 if (copy_from_user(&psinfo->pr_psargs, in fill_psinfo()
1588 if (psinfo->pr_psargs[i] == 0) in fill_psinfo()
1589 psinfo->pr_psargs[i] = ' '; in fill_psinfo()
1590 psinfo->pr_psargs[len] = 0; in fill_psinfo()
1593 psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); in fill_psinfo()
1595 psinfo->pr_pid = task_pid_vnr(p); in fill_psinfo()
1596 psinfo->pr_pgrp = task_pgrp_vnr(p); in fill_psinfo()
1597 psinfo->pr_sid = task_session_vnr(p); in fill_psinfo()
1601 psinfo->pr_state = i; in fill_psinfo()
1602 psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i]; in fill_psinfo()
1603 psinfo->pr_zomb = psinfo->pr_sname == 'Z'; in fill_psinfo()
1604 psinfo->pr_nice = task_nice(p); in fill_psinfo()
1605 psinfo->pr_flag = p->flags; in fill_psinfo()
1608 SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid)); in fill_psinfo()
1609 SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); in fill_psinfo()
1611 get_task_comm(psinfo->pr_fname, p); in fill_psinfo()
1739 struct memelfnote psinfo; member
1835 struct elf_prpsinfo *psinfo; in fill_note_info() local
1842 psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL); in fill_note_info()
1843 if (psinfo == NULL) { in fill_note_info()
1844 info->psinfo.data = NULL; /* So we don't free this wrongly */ in fill_note_info()
1848 fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); in fill_note_info()
1908 fill_psinfo(psinfo, dump_task->group_leader, dump_task->mm); in fill_note_info()
1909 info->size += notesize(&info->psinfo); in fill_note_info()
1944 if (first && !writenote(&info->psinfo, cprm)) in write_note_info()
1978 kfree(info->psinfo.data); in free_note_info()
2028 struct elf_prpsinfo *psinfo; /* NT_PRPSINFO */ member
2045 info->psinfo = kmalloc(sizeof(*info->psinfo), GFP_KERNEL); in elf_note_info_init()
2046 if (!info->psinfo) in elf_note_info_init()
2098 fill_psinfo(info->psinfo, current->group_leader, current->mm); in fill_note_info()
2100 sizeof(*info->psinfo), info->psinfo); in fill_note_info()
2166 kfree(info->psinfo); in free_note_info()