psinfo 1506 fs/binfmt_elf.c static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p, psinfo 1513 fs/binfmt_elf.c memset(psinfo, 0, sizeof(struct elf_prpsinfo)); psinfo 1518 fs/binfmt_elf.c if (copy_from_user(&psinfo->pr_psargs, psinfo 1522 fs/binfmt_elf.c if (psinfo->pr_psargs[i] == 0) psinfo 1523 fs/binfmt_elf.c psinfo->pr_psargs[i] = ' '; psinfo 1524 fs/binfmt_elf.c psinfo->pr_psargs[len] = 0; psinfo 1527 fs/binfmt_elf.c psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); psinfo 1529 fs/binfmt_elf.c psinfo->pr_pid = task_pid_vnr(p); psinfo 1530 fs/binfmt_elf.c psinfo->pr_pgrp = task_pgrp_vnr(p); psinfo 1531 fs/binfmt_elf.c psinfo->pr_sid = task_session_vnr(p); psinfo 1534 fs/binfmt_elf.c psinfo->pr_state = i; psinfo 1535 fs/binfmt_elf.c psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i]; psinfo 1536 fs/binfmt_elf.c psinfo->pr_zomb = psinfo->pr_sname == 'Z'; psinfo 1537 fs/binfmt_elf.c psinfo->pr_nice = task_nice(p); psinfo 1538 fs/binfmt_elf.c psinfo->pr_flag = p->flags; psinfo 1541 fs/binfmt_elf.c SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid)); psinfo 1542 fs/binfmt_elf.c SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); psinfo 1544 fs/binfmt_elf.c strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); psinfo 1670 fs/binfmt_elf.c struct memelfnote psinfo; psinfo 1767 fs/binfmt_elf.c struct elf_prpsinfo *psinfo; psinfo 1774 fs/binfmt_elf.c psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL); psinfo 1775 fs/binfmt_elf.c if (psinfo == NULL) { psinfo 1776 fs/binfmt_elf.c info->psinfo.data = NULL; /* So we don't free this wrongly */ psinfo 1780 fs/binfmt_elf.c fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); psinfo 1840 fs/binfmt_elf.c fill_psinfo(psinfo, dump_task->group_leader, dump_task->mm); psinfo 1841 fs/binfmt_elf.c info->size += notesize(&info->psinfo); psinfo 1876 fs/binfmt_elf.c if (first && !writenote(&info->psinfo, cprm)) psinfo 1910 fs/binfmt_elf.c kfree(info->psinfo.data); psinfo 1972 fs/binfmt_elf.c struct elf_prpsinfo *psinfo; /* NT_PRPSINFO */ psinfo 1992 fs/binfmt_elf.c info->psinfo = kmalloc(sizeof(*info->psinfo), GFP_KERNEL); psinfo 1993 fs/binfmt_elf.c if (!info->psinfo) psinfo 2050 fs/binfmt_elf.c fill_psinfo(info->psinfo, current->group_leader, current->mm); psinfo 2052 fs/binfmt_elf.c sizeof(*info->psinfo), info->psinfo); psinfo 2125 fs/binfmt_elf.c kfree(info->psinfo); psinfo 1378 fs/binfmt_elf_fdpic.c static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p, psinfo 1385 fs/binfmt_elf_fdpic.c memset(psinfo, 0, sizeof(struct elf_prpsinfo)); psinfo 1390 fs/binfmt_elf_fdpic.c if (copy_from_user(&psinfo->pr_psargs, psinfo 1394 fs/binfmt_elf_fdpic.c if (psinfo->pr_psargs[i] == 0) psinfo 1395 fs/binfmt_elf_fdpic.c psinfo->pr_psargs[i] = ' '; psinfo 1396 fs/binfmt_elf_fdpic.c psinfo->pr_psargs[len] = 0; psinfo 1399 fs/binfmt_elf_fdpic.c psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); psinfo 1401 fs/binfmt_elf_fdpic.c psinfo->pr_pid = task_pid_vnr(p); psinfo 1402 fs/binfmt_elf_fdpic.c psinfo->pr_pgrp = task_pgrp_vnr(p); psinfo 1403 fs/binfmt_elf_fdpic.c psinfo->pr_sid = task_session_vnr(p); psinfo 1406 fs/binfmt_elf_fdpic.c psinfo->pr_state = i; psinfo 1407 fs/binfmt_elf_fdpic.c psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i]; psinfo 1408 fs/binfmt_elf_fdpic.c psinfo->pr_zomb = psinfo->pr_sname == 'Z'; psinfo 1409 fs/binfmt_elf_fdpic.c psinfo->pr_nice = task_nice(p); psinfo 1410 fs/binfmt_elf_fdpic.c psinfo->pr_flag = p->flags; psinfo 1413 fs/binfmt_elf_fdpic.c SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid)); psinfo 1414 fs/binfmt_elf_fdpic.c SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); psinfo 1416 fs/binfmt_elf_fdpic.c strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); psinfo 1561 fs/binfmt_elf_fdpic.c struct elf_prpsinfo *psinfo = NULL; /* NT_PRPSINFO */ psinfo 1596 fs/binfmt_elf_fdpic.c psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL); psinfo 1597 fs/binfmt_elf_fdpic.c if (!psinfo) psinfo 1656 fs/binfmt_elf_fdpic.c fill_psinfo(psinfo, current->group_leader, current->mm); psinfo 1657 fs/binfmt_elf_fdpic.c fill_note(notes + 1, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); psinfo 1802 fs/binfmt_elf_fdpic.c kfree(psinfo); psinfo 36 fs/pstore/ftrace.c .psi = psinfo, psinfo 48 fs/pstore/ftrace.c psinfo->write(&record); psinfo 115 fs/pstore/ftrace.c if (!psinfo->write) psinfo 369 fs/pstore/inode.c struct pstore_info *psi = psinfo; psinfo 28 fs/pstore/internal.h extern struct pstore_info *psinfo; psinfo 76 fs/pstore/platform.c struct pstore_info *psinfo; psinfo 298 fs/pstore/platform.c if (!psinfo || tfm) psinfo 306 fs/pstore/platform.c size = zbackend->zbufsize(psinfo->bufsize); psinfo 361 fs/pstore/platform.c if (total_len > psinfo->bufsize) { psinfo 362 fs/pstore/platform.c diff = total_len - psinfo->bufsize + hsize; psinfo 363 fs/pstore/platform.c memcpy(psinfo->buf, big_oops_buf, hsize); psinfo 364 fs/pstore/platform.c memcpy(psinfo->buf + hsize, big_oops_buf + diff, psinfo 365 fs/pstore/platform.c psinfo->bufsize - hsize); psinfo 366 fs/pstore/platform.c total_len = psinfo->bufsize; psinfo 368 fs/pstore/platform.c memcpy(psinfo->buf, big_oops_buf, total_len); psinfo 374 fs/pstore/platform.c struct pstore_info *psinfo) psinfo 378 fs/pstore/platform.c record->psi = psinfo; psinfo 398 fs/pstore/platform.c if (down_trylock(&psinfo->buf_lock)) { psinfo 405 fs/pstore/platform.c if (down_interruptible(&psinfo->buf_lock)) { psinfo 420 fs/pstore/platform.c pstore_record_init(&record, psinfo); psinfo 425 fs/pstore/platform.c record.buf = psinfo->buf; psinfo 431 fs/pstore/platform.c dst = psinfo->buf; psinfo 432 fs/pstore/platform.c dst_size = psinfo->bufsize; psinfo 446 fs/pstore/platform.c zipped_len = pstore_compress(dst, psinfo->buf, psinfo 448 fs/pstore/platform.c psinfo->bufsize); psinfo 461 fs/pstore/platform.c ret = psinfo->write(&record); psinfo 469 fs/pstore/platform.c up(&psinfo->buf_lock); psinfo 497 fs/pstore/platform.c pstore_record_init(&record, psinfo); psinfo 502 fs/pstore/platform.c psinfo->write(&record); psinfo 580 fs/pstore/platform.c if (psinfo) { psinfo 582 fs/pstore/platform.c psinfo->name, psi->name); psinfo 589 fs/pstore/platform.c psinfo = psi; psinfo 590 fs/pstore/platform.c mutex_init(&psinfo->read_mutex); psinfo 591 fs/pstore/platform.c sema_init(&psinfo->buf_lock, 1); psinfo 595 fs/pstore/platform.c psinfo = NULL; psinfo 653 fs/pstore/platform.c psinfo = NULL; psinfo 23 fs/pstore/pmsg.c pstore_record_init(&record, psinfo); psinfo 32 fs/pstore/pmsg.c ret = psinfo->write_user(&record, buf);