buf = append_elf_note(buf, "CORE", NT_PRSTATUS, &prstatus, sizeof(prstatus));  
buf = append_elf_note(buf, "CORE", NT_PRSTATUS, &prstatus, sizeof(prstatus)); 
static void crash_save_this_cpu(struct pt_regs *regs, int cpu){	struct elf_prstatus prstatus;	u32 *buf;	if ((cpu < 0) || (cpu >= NR_CPUS)) {		return;	}	/* Using ELF notes here is opportunistic.	 * I need a well defined structure format	 * for the data I pass, and I need tags	 * on the data to indicate what information I have	 * squirrelled away.  ELF notes happen to provide	 * all of that that no need to invent something new.	 */	buf = &crash_notes[cpu][0];	memset(&prstatus, 0, sizeof(prstatus));	prstatus.pr_pid = current->pid;	elf_core_copy_regs(&prstatus.pr_reg, regs);	buf = append_elf_note(buf, "CORE", NT_PRSTATUS,		&prstatus, sizeof(prstatus));	final_note(buf);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/72414d3f1d22fc3e311b162fca95c430048d38ce/crash.c/buggy/arch/i386/kernel/crash.c