• Home
  • Raw
  • Download

Lines Matching refs:psinfo

1506 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,  in fill_psinfo()  argument
1513 memset(psinfo, 0, sizeof(struct elf_prpsinfo)); in fill_psinfo()
1518 if (copy_from_user(&psinfo->pr_psargs, in fill_psinfo()
1522 if (psinfo->pr_psargs[i] == 0) in fill_psinfo()
1523 psinfo->pr_psargs[i] = ' '; in fill_psinfo()
1524 psinfo->pr_psargs[len] = 0; in fill_psinfo()
1527 psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); in fill_psinfo()
1529 psinfo->pr_pid = task_pid_vnr(p); in fill_psinfo()
1530 psinfo->pr_pgrp = task_pgrp_vnr(p); in fill_psinfo()
1531 psinfo->pr_sid = task_session_vnr(p); in fill_psinfo()
1534 psinfo->pr_state = i; in fill_psinfo()
1535 psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i]; in fill_psinfo()
1536 psinfo->pr_zomb = psinfo->pr_sname == 'Z'; in fill_psinfo()
1537 psinfo->pr_nice = task_nice(p); in fill_psinfo()
1538 psinfo->pr_flag = p->flags; in fill_psinfo()
1541 SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid)); in fill_psinfo()
1542 SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); in fill_psinfo()
1544 strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); in fill_psinfo()
1670 struct memelfnote psinfo; member
1767 struct elf_prpsinfo *psinfo; in fill_note_info() local
1774 psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL); in fill_note_info()
1775 if (psinfo == NULL) { in fill_note_info()
1776 info->psinfo.data = NULL; /* So we don't free this wrongly */ in fill_note_info()
1780 fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); in fill_note_info()
1840 fill_psinfo(psinfo, dump_task->group_leader, dump_task->mm); in fill_note_info()
1841 info->size += notesize(&info->psinfo); in fill_note_info()
1876 if (first && !writenote(&info->psinfo, cprm)) in write_note_info()
1910 kfree(info->psinfo.data); in free_note_info()
1972 struct elf_prpsinfo *psinfo; /* NT_PRPSINFO */ member
1992 info->psinfo = kmalloc(sizeof(*info->psinfo), GFP_KERNEL); in elf_note_info_init()
1993 if (!info->psinfo) in elf_note_info_init()
2050 fill_psinfo(info->psinfo, current->group_leader, current->mm); in fill_note_info()
2052 sizeof(*info->psinfo), info->psinfo); in fill_note_info()
2125 kfree(info->psinfo); in free_note_info()