• Home
  • Raw
  • Download

Lines Matching refs:p

621 char kdb_task_state_char (const struct task_struct *p)  in kdb_task_state_char()  argument
627 if (!p || in kdb_task_state_char()
628 copy_from_kernel_nofault(&tmp, (char *)p, sizeof(unsigned long))) in kdb_task_state_char()
631 cpu = kdb_process_cpu(p); in kdb_task_state_char()
632 state = (p->state == 0) ? 'R' : in kdb_task_state_char()
633 (p->state < 0) ? 'U' : in kdb_task_state_char()
634 (p->state & TASK_UNINTERRUPTIBLE) ? 'D' : in kdb_task_state_char()
635 (p->state & TASK_STOPPED) ? 'T' : in kdb_task_state_char()
636 (p->state & TASK_TRACED) ? 'C' : in kdb_task_state_char()
637 (p->exit_state & EXIT_ZOMBIE) ? 'Z' : in kdb_task_state_char()
638 (p->exit_state & EXIT_DEAD) ? 'E' : in kdb_task_state_char()
639 (p->state & TASK_INTERRUPTIBLE) ? 'S' : '?'; in kdb_task_state_char()
640 if (is_idle_task(p)) { in kdb_task_state_char()
643 if (!kdb_task_has_cpu(p) || kgdb_info[cpu].irq_depth == 1) { in kdb_task_state_char()
647 } else if (!p->mm && state == 'S') { in kdb_task_state_char()
662 unsigned long kdb_task_state(const struct task_struct *p, unsigned long mask) in kdb_task_state() argument
664 char state[] = { kdb_task_state_char(p), '\0' }; in kdb_task_state()
750 void *p = NULL; in debug_kmalloc() local
796 p = (char *)best + dah_overhead; in debug_kmalloc()
797 memset(p, POISON_INUSE, best->size - 1); in debug_kmalloc()
798 *((char *)p + best->size - 1) = POISON_END; in debug_kmalloc()
801 return p; in debug_kmalloc()
804 void debug_kfree(void *p) in debug_kfree() argument
808 if (!p) in debug_kfree()
810 if ((char *)p < debug_alloc_pool || in debug_kfree()
811 (char *)p >= debug_alloc_pool + sizeof(debug_alloc_pool_aligned)) { in debug_kfree()
812 kfree(p); in debug_kfree()
819 h = (struct debug_alloc_header *)((char *)p - dah_overhead); in debug_kfree()
820 memset(p, POISON_FREE, h->size - 1); in debug_kfree()
821 *((char *)p + h->size - 1) = POISON_END; in debug_kfree()