Lines Matching refs:psinfo

1382 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,  in fill_psinfo()  argument
1389 memset(psinfo, 0, sizeof(struct elf_prpsinfo)); in fill_psinfo()
1394 if (copy_from_user(&psinfo->pr_psargs, in fill_psinfo()
1398 if (psinfo->pr_psargs[i] == 0) in fill_psinfo()
1399 psinfo->pr_psargs[i] = ' '; in fill_psinfo()
1400 psinfo->pr_psargs[len] = 0; in fill_psinfo()
1403 psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); in fill_psinfo()
1405 psinfo->pr_pid = task_pid_vnr(p); in fill_psinfo()
1406 psinfo->pr_pgrp = task_pgrp_vnr(p); in fill_psinfo()
1407 psinfo->pr_sid = task_session_vnr(p); in fill_psinfo()
1410 psinfo->pr_state = i; in fill_psinfo()
1411 psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i]; in fill_psinfo()
1412 psinfo->pr_zomb = psinfo->pr_sname == 'Z'; in fill_psinfo()
1413 psinfo->pr_nice = task_nice(p); in fill_psinfo()
1414 psinfo->pr_flag = p->flags; in fill_psinfo()
1417 SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid)); in fill_psinfo()
1418 SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); in fill_psinfo()
1420 strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); in fill_psinfo()
1565 struct elf_prpsinfo *psinfo = NULL; /* NT_PRPSINFO */ in elf_fdpic_core_dump() local
1600 psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL); in elf_fdpic_core_dump()
1601 if (!psinfo) in elf_fdpic_core_dump()
1660 fill_psinfo(psinfo, current->group_leader, current->mm); in elf_fdpic_core_dump()
1661 fill_note(notes + 1, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); in elf_fdpic_core_dump()
1806 kfree(psinfo); in elf_fdpic_core_dump()