当前位置: 首页>>代码示例>>C++>>正文


C++ TRACE_EXIT函数代码示例

本文整理汇总了C++中TRACE_EXIT函数的典型用法代码示例。如果您正苦于以下问题:C++ TRACE_EXIT函数的具体用法?C++ TRACE_EXIT怎么用?C++ TRACE_EXIT使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了TRACE_EXIT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: tierfs_fsync

static int
tierfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{
	int rc;

	TRACE_ENTRY();
	rc = filemap_write_and_wait(file->f_mapping);
	if (rc)
		return rc;

	TRACE_EXIT();
	return vfs_fsync(tierfs_file_to_lower(file), datasync);
}
开发者ID:XavatarX,项目名称:code,代码行数:13,代码来源:file.c

示例2: CreateSurface

/*Creating and Destroying Functions*/
Bool CreateSurface(GALINFOPTR galInfo, PixmapPtr pPixmap, Viv2DPixmapPtr pPix) {
    GenericSurfacePtr surf = gcvNULL;
    VIVGPUPtr gpuctx = (VIVGPUPtr) galInfo->mGpu;
    gctUINT alignedWidth, alignedHeight;
    gctUINT bytesPerPixel;
    alignedWidth = gcmALIGN(pPixmap->drawable.width, WIDTH_ALIGNMENT);
    alignedHeight = gcmALIGN(pPixmap->drawable.height, HEIGHT_ALIGNMENT);
    bytesPerPixel = BITSTOBYTES(pPixmap->drawable.bitsPerPixel);

    /*QUICK FIX*/
    if (bytesPerPixel < 2) {
        bytesPerPixel = 2;
    }

    if (!VIV2DGPUSurfaceAlloc(gpuctx, alignedWidth, alignedHeight, bytesPerPixel, &surf)) {
        TRACE_ERROR("Surface Creation Error\n");
        TRACE_EXIT(FALSE);
    }

    pPix->mVidMemInfo = surf;
    TRACE_EXIT(TRUE);
}
开发者ID:DesmondWu,项目名称:xorg-drv-vivante,代码行数:23,代码来源:vivante_gal_surface.c

示例3: TRACE_ENTER

COM::COM()
{
	TRACE_ENTER();

	HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);

	if(!SUCCEEDED(hr))
	{
		TRACE_PRINT1("CoInitializeEx: error, errCode = 0x%08x.", hr);
	}

	TRACE_EXIT();
}
开发者ID:nmap,项目名称:npcap,代码行数:13,代码来源:LoopbackRecord.cpp

示例4: getIntDevID

int getIntDevID(TCHAR strDevID[]) //DevID is in form like: "ROOT\\NET\\0008"
{
	TRACE_ENTER();

	int iDevID = -1;
	int iMatched = _stscanf_s(strDevID, _T("ROOT\\NET\\%04d"), &iDevID);
	TRACE_PRINT2("_stscanf_s: iMatched = %d, iDevID = %d.", iMatched, iDevID);
	if (iMatched != 1)
		iDevID = -1;

	TRACE_EXIT();
	return iDevID;
}
开发者ID:nmap,项目名称:npcap,代码行数:13,代码来源:LoopbackRecord.cpp

示例5: TRACE_ENTRY

struct isert_cmnd *isert_tx_pdu_alloc(struct isert_connection *isert_conn,
				      size_t size)
{
	struct isert_cmnd *pdu = NULL;
	int err;

	TRACE_ENTRY();

	pdu = isert_pdu_alloc();
	if (unlikely(!pdu)) {
		pr_err("Failed to alloc pdu\n");
		goto out;
	}

	err = isert_alloc_for_rdma(pdu, 4, isert_conn);
	if (unlikely(err)) {
		pr_err("Failed to alloc sge and wr for tx pdu\n");
		goto out;
	}

	err = isert_buf_alloc_data_buf(isert_conn->isert_dev->ib_dev,
				       &pdu->buf, size, DMA_TO_DEVICE);
	if (unlikely(err)) {
		pr_err("Failed to alloc tx pdu buf sz:%zd\n", size);
		goto buf_alloc_failed;
	}

	err = isert_pdu_tx_buf_init(pdu, isert_conn);
	if (unlikely(err < 0)) {
		pr_err("Failed to init tx pdu wr:%p size:%zd err:%d\n",
		       &pdu->wr, size, err);
		goto buf_init_failed;
	}

	isert_tx_pdu_init(pdu, isert_conn);

	isert_pdu_set_hdr_plain(pdu);

	list_add_tail(&pdu->pool_node, &isert_conn->tx_free_list);

	goto out;

buf_init_failed:
	isert_buf_release(&pdu->buf);
buf_alloc_failed:
	isert_pdu_kfree(pdu);
	pdu = NULL;
out:
	TRACE_EXIT();
	return pdu;
}
开发者ID:qtsky89,项目名称:scst-xcopy,代码行数:51,代码来源:iser_pdu.c

示例6: throw

void FileManager_impl::move (const char* sourceFileName, const char* destinationFileName)
    throw (CORBA::SystemException, CF::InvalidFileName, CF::FileException)
{
    TRACE_ENTER(FileManager_impl);

    // Validate absolute file names
    if (sourceFileName[0] != '/' || !ossie::isValidFileName(sourceFileName)) {
        throw CF::InvalidFileName(CF::CF_EINVAL, "Invalid source file name");
    } else if (destinationFileName[0] != '/' || !ossie::isValidFileName(destinationFileName)) {
        throw CF::InvalidFileName(CF::CF_EINVAL, "Invalid destination file name");
    } else if (strcmp(sourceFileName, destinationFileName) == 0) {
        throw CF::InvalidFileName(CF::CF_EINVAL, "Destination file name is identical to source file name");
    }

    LOG_TRACE(FileManager_impl, "Move " << sourceFileName << " to " << destinationFileName);

    // Lock the mount table shared to allow others to access the file system,
    // but prevent changes to the mount table itself.
    boost::shared_lock<boost::shared_mutex> lock(mountsLock);

    MountList::iterator sourceMount = getMountForPath(sourceFileName);
    MountList::iterator destMount = getMountForPath(destinationFileName);

    if (sourceMount == destMount) {
        // Source and destination are on the same file system...
        if (sourceMount == mountedFileSystems.end()) {
            // ...which is also the local file system.
            LOG_TRACE(FileManager_impl, "Moving locally");
            FileSystem_impl::move(sourceFileName, destinationFileName);
        } else {
            // ...which is a remote file system.
            LOG_TRACE(FileManager_impl, "Moving locally on remote file system");
            const std::string srcPath = sourceMount->getRelativePath(sourceFileName);
            const std::string dstPath = destMount->getRelativePath(destinationFileName);
            sourceMount->fs->move(srcPath.c_str(), dstPath.c_str());
        }
        return;
    }

    LOG_TRACE(FileManager_impl, "Moving between filesystems");

    // Perform a copy followed by a remove, which is the only way we can move
    // across file systems. This operation is not atomic, and making it atomic
    // across a distributed file system is difficult. If necessary, we can
    // acquire an exclusive lock which at least prevents anyone going through
    // the domain's FileManager from interfering with this operation.
    this->copy(sourceFileName, destinationFileName);
    this->remove(sourceFileName);

    TRACE_EXIT(FileManager_impl);
}
开发者ID:a100lesserfaces,项目名称:framework-core,代码行数:51,代码来源:FileManager_impl.cpp

示例7: TRACE_ENTRY

		void 
		_test_suite::unregister_all_tests(void)
		{
			TRACE_ENTRY();
			SERIALIZE_CALL_RECURSIVE(m_test_suite_lock);

			while(!m_test_map.empty()) {
				unregister_test(m_test_map.begin()->first);
			}

			m_test_map.clear();

			TRACE_EXIT();
		}
开发者ID:majestic53old,项目名称:nimble-funct-lang,代码行数:14,代码来源:test_suite.cpp

示例8: EraseLoopbackRecord

BOOL EraseLoopbackRecord()
{
	TRACE_ENTER();
	BOOL rv = TRUE;
#ifndef NPF_NPCAP_RUN_IN_WINPCAP_MODE
	HKEY hKey;
	DWORD type;
	char buffer[BUFSIZE];
	DWORD size = sizeof(buffer);
	DWORD dwWinPcapMode = 0;

	if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, NPCAP_SERVICE_REG_KEY_NAME _T("\\Parameters"), 0, KEY_READ, &hKey) == ERROR_SUCCESS)
	{
		if (RegQueryValueExA(hKey, "WinPcapCompatible", 0, &type,  (LPBYTE)buffer, &size) == ERROR_SUCCESS && type == REG_DWORD)
		{
			dwWinPcapMode = *((DWORD *) buffer);
		}
		else
		{
			TRACE_PRINT1("RegQueryValueExA(WinPcapCompatible) failed or not REG_DWORD: %#x\n", GetLastError());
			dwWinPcapMode = 0;
		}

		RegCloseKey(hKey);
	}
	else
	{
		TRACE_PRINT2("%s\\Parameters) failed: %#x\n", NPCAP_SERVICE_REG_KEY_NAME, GetLastError());
		dwWinPcapMode = 0;
	}

	if (dwWinPcapMode != 0 && !DeleteValueFromRegistry(_T("SYSTEM\\CurrentControlSet\\Services\\npf\\Parameters"), NPCAP_REG_LOOPBACK_VALUE_NAME))
	{
		rv = FALSE;
	}
#endif /* ifndef NPF_NPCAP_RUN_IN_WINPCAP_MODE */

	if (!DeleteValueFromRegistry(NPCAP_REG_KEY_NAME, NPCAP_REG_LOOPBACK_VALUE_NAME))
	{
		rv = FALSE;
	}

	if (!DeleteValueFromRegistry(NPCAP_SERVICE_REG_KEY_NAME _T("\\Parameters"), NPCAP_REG_LOOPBACK_VALUE_NAME))
	{
		rv = FALSE;
	}

	TRACE_EXIT();
	return rv;
}
开发者ID:nmap,项目名称:npcap,代码行数:50,代码来源:LoopbackRecord.cpp

示例9: m_character_column

		_lexer_base::_lexer_base(
			__in const _lexer_base &other
			) :
				m_character_column(other.m_character_column),
				m_character_column_length(other.m_character_column_length),
				m_character_position(other.m_character_position),
				m_character_row(other.m_character_row),
				m_character_type(other.m_character_type),
				m_raw_input(other.m_raw_input),
				m_source_path(other.m_source_path)
		{
			TRACE_ENTRY();
			TRACE_EXIT();
		}
开发者ID:majestic53old,项目名称:nimble-funct-lang,代码行数:14,代码来源:lexer_base.cpp

示例10: TRACE_ENTRY

		void 
		_lexer_base::reset(void)
		{
			TRACE_ENTRY();
			SERIALIZE_CALL_RECURSIVE(m_lexer_base_lock);

			m_character_column = 0;
			m_character_column_length.clear();
			m_character_position = 0;
			m_character_row = 0;
			m_character_type = lexer_base::determine_character_type(get_character());

			TRACE_EXIT();
		}
开发者ID:majestic53old,项目名称:nimble-funct-lang,代码行数:14,代码来源:lexer_base.cpp

示例11: tierfs_compat_ioctl

static long
tierfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{
	struct file *lower_file = NULL;
	long rc = -ENOIOCTLCMD;

	TRACE_ENTRY();
	if (tierfs_file_to_private(file))
		lower_file = tierfs_file_to_lower(file);
	if (lower_file && lower_file->f_op && lower_file->f_op->compat_ioctl)
		rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg);
	TRACE_EXIT();
	return rc;
}
开发者ID:XavatarX,项目名称:code,代码行数:14,代码来源:file.c

示例12: TRACE_ENTRY

		void 
		_interpreter::run(void)
		{
			TRACE_ENTRY();
			SERIALIZE_CALL_RECUR(m_lock);

			parser::clear();

			while(parser::has_next_statement()) {
				step();
			}

			TRACE_EXIT("Return Value: 0x%x", NULL);
		}
开发者ID:majestic53old,项目名称:luna,代码行数:14,代码来源:luna_interpreter.cpp

示例13: Permedia3SetupForMono8x8PatternFill

/* 8x8 Mono Pattern Fills */
static void 
Permedia3SetupForMono8x8PatternFill(ScrnInfoPtr pScrn, 
			   int patternx, int patterny, 
			   int fg, int bg, int rop,
			   unsigned int planemask)
{
    GLINTPtr pGlint = GLINTPTR(pScrn);
    TRACE_ENTER("Permedia3SetupForMono8x8PatternFill");
    REPLICATE(fg);
    pGlint->PM3_Render2D =
	PM3Render2D_AreaStippleEnable |
	PM3Render2D_SpanOperation |
	PM3Render2D_XPositive |
	PM3Render2D_YPositive |
	PM3Render2D_Operation_Normal;
    pGlint->PM3_Config2D =
	PM3Config2D_UseConstantSource |
	PM3Config2D_ForegroundROPEnable |
	PM3Config2D_ForegroundROP(rop) |
	PM3Config2D_FBWriteEnable;
    if ((rop!=GXclear)&&(rop!=GXset)&&(rop!=GXcopy)&&(rop!=GXcopyInverted))
	pGlint->PM3_Config2D |= PM3Config2D_FBDestReadEnable;
    pGlint->PM3_AreaStippleMode = 1;
/* Mirror stipple pattern horizontally */
#if X_BYTE_ORDER == X_BIG_ENDIAN
    pGlint->PM3_AreaStippleMode |= (1<<18);
#endif
    pGlint->PM3_AreaStippleMode |= (2<<1);
    pGlint->PM3_AreaStippleMode |= (2<<4);
    if (bg != -1) {
	REPLICATE(bg);
	pGlint->PM3_Config2D |= PM3Config2D_OpaqueSpan;
	pGlint->PM3_AreaStippleMode |= 1<<20;
	GLINT_WAIT(12);
    	GLINT_WRITE_REG(bg, BackgroundColor);
    }
    else GLINT_WAIT(11);
    GLINT_WRITE_REG((patternx & 0xFF), AreaStipplePattern0);
    GLINT_WRITE_REG((patternx & 0xFF00) >> 8, AreaStipplePattern1);
    GLINT_WRITE_REG((patternx & 0xFF0000) >> 16, AreaStipplePattern2);
    GLINT_WRITE_REG((patternx & 0xFF000000) >> 24, AreaStipplePattern3);
    GLINT_WRITE_REG((patterny & 0xFF), AreaStipplePattern4);
    GLINT_WRITE_REG((patterny & 0xFF00) >> 8, AreaStipplePattern5);
    GLINT_WRITE_REG((patterny & 0xFF0000) >> 16, AreaStipplePattern6);
    GLINT_WRITE_REG((patterny & 0xFF000000) >> 24, AreaStipplePattern7);
    GLINT_WRITE_REG(fg, PM3ForegroundColor);
    PM3_PLANEMASK(planemask);
    GLINT_WRITE_REG(pGlint->PM3_Config2D, PM3Config2D);
    TRACE_EXIT("Permedia3SetupForMono8x8PatternFill");
}
开发者ID:marioaugustorama,项目名称:tropix-xwindow,代码行数:51,代码来源:pm3_accel.c

示例14: TRACE_ENTER

CDeskBand::~CDeskBand()
{
  TRACE_ENTER("CDeskBand::~CDeskBand");
  //this should have been freed in a call to SetSite(NULL), but just to be safe
  if (m_pSite)
    {
      m_pSite->Release();
      m_pSite = NULL;
    }

  g_DllRefCount--;
  TRACE_MSG(g_DllRefCount);
  TRACE_EXIT();
}
开发者ID:183amir,项目名称:workrave,代码行数:14,代码来源:DeskBand.cpp

示例15: json_uuid_class

		_json_token::_json_token(
			__in const _json_token &other
			) :
				json_uuid_class(other),
				m_line(other.m_line),
				m_source(other.m_source),
				m_subtype(other.m_subtype),
				m_text(other.m_text),
				m_type(other.m_type),
				m_value(other.m_value)
		{
			TRACE_ENTRY();
			TRACE_EXIT("Return Value: 0x%x", 0);
		}
开发者ID:majestic53,项目名称:jfetch,代码行数:14,代码来源:json_token.cpp


注:本文中的TRACE_EXIT函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。