FreeBSD/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c
/*
 * The bulk of this function could be replaced to match dtrace_copyinstr() 
 * if we ever implement a copyoutstr().
 */
The bulk of this function could be replaced to match dtrace_copyinstr()
if we ever implement a copyoutstr().
The bulk of this function could be replaced to match dtrace_copyinstr () if we ever implement a copyoutstr () .
void
dtrace_copyoutstr(uintptr_t kaddr, uintptr_t uaddr, size_t size,
    volatile uint16_t *flags)
{
	size_t len;
	if (dtrace_copycheck(uaddr, kaddr, size)) {
		len = strlen((const char *)kaddr);
		if (len > size)
			len = size;
		if (copyout((const void *)kaddr, (void *)uaddr, len)) {
			DTRACE_CPUFLAG_SET(CPU_DTRACE_BADADDR);
			cpu_core[curcpu].cpuc_dtrace_illval = (uintptr_t)uaddr;
		}
	}
}
void dtrace_copyoutstr ( uintptr_t kaddr , uintptr_t uaddr , size_t size , volatile uint16_t * flags ) { size_t len ; if ( dtrace_copycheck ( uaddr , kaddr , size ) ) { len = strlen ( ( const char * ) kaddr ) ; if ( len > size ) len = size ; if ( copyout ( ( const void * ) kaddr , ( void * ) uaddr , len ) ) { DTRACE_CPUFLAG_SET ( CPU_DTRACE_BADADDR ) ; cpu_core [ curcpu ] . cpuc_dtrace_illval = ( uintptr_t ) uaddr ; } } }
The bulk of this function could be replaced to match dtrace_copyinstr()
 if we ever implement a copyoutstr().
The bulk of this function could be replaced to match dtrace_copyinstr () if we ever implement a copyoutstr () .