Exemplo n.º 1
0
void PDumpTASignatureRegisters(u32 ui32DumpFrameNum,
				   u32 ui32TAKickCount,
				   IMG_BOOL bLastFrame,
				   u32 *pui32Registers,
				   u32 ui32NumRegisters)
{
	u32 ui32FileOffset, ui32Flags;
	u32 i;

	__PDBG_PDUMP_STATE_GET_SCRIPT_AND_FILE_STRING();

	ui32Flags = bLastFrame ? PDUMP_FLAGS_LASTFRAME : 0;
	PDUMPCOMMENTWITHFLAGS(ui32Flags,
			      "\r\n-- Dump TA signature registers\r\n");
	snprintf(pszFile, SZ_FILENAME_SIZE_MAX, "out%lu_ta.sig",
		 ui32DumpFrameNum);

	ui32FileOffset = ui32TAKickCount * ui32NumRegisters * sizeof(u32);

	for (i = 0; i < ui32NumRegisters; i++) {
		PDumpReadRegKM(pszFile, ui32FileOffset, pui32Registers[i],
			       sizeof(u32), ui32Flags);
		ui32FileOffset += sizeof(u32);
	}
}
void PDumpCounterRegisters(u32 ui32DumpFrameNum,
			   u32 *pui32Registers, u32 ui32NumRegisters)
{
	u32 i;

	PDumpCommentWithFlags(0, "Dump counter registers\r\n");
	snprintf(gpszFile, SZ_FILENAME_SIZE_MAX, "out%u.perf",
		 ui32DumpFrameNum);

	for (i = 0; i < ui32NumRegisters; i++)
		PDumpReadRegKM(gpszFile, i * sizeof(u32), pui32Registers[i]);
}
void PDumpTASignatureRegisters(u32 ui32DumpFrameNum, u32 ui32TAKickCount,
			       u32 *pui32Registers, u32 ui32NumRegisters)
{
	u32 i, ui32FileOffset;

	PDumpCommentWithFlags(0, "Dump TA signature registers\r\n");
	snprintf(gpszFile, SZ_FILENAME_SIZE_MAX, "out%u_ta.sig",
		 ui32DumpFrameNum);

	ui32FileOffset = ui32TAKickCount * ui32NumRegisters * sizeof(u32);

	for (i = 0; i < ui32NumRegisters; i++)
		PDumpReadRegKM(gpszFile, ui32FileOffset + i * sizeof(u32),
			       pui32Registers[i]);
}