kernel/eka/include/e32btrace.h
changeset 247 d8d70de2bd36
parent 109 b3a1d9898418
equal deleted inserted replaced
201:43365a9b78a3 247:d8d70de2bd36
  1435 		This trace is only emitted on the flexible memory model.
  1435 		This trace is only emitted on the flexible memory model.
  1436 		*/
  1436 		*/
  1437 		EPagingPageTableAlloc,
  1437 		EPagingPageTableAlloc,
  1438 		};
  1438 		};
  1439 
  1439 
  1440 	/**
  1440     /**
  1441 	Enumeration of sub-category values for trace category EResourceManager.
  1441     Enumeration of sub-category values for trace category EResourceManager.
  1442 	@see EResourceManager
  1442     @see EResourceManager
  1443 	@prototype 9.5
  1443     @prototype 9.5
  1444 	*/
  1444     */
  1445 	enum TResourceManager
  1445     enum TResourceManager
  1446 		{
  1446         {
  1447 		/**
  1447         /**
  1448 		Trace output for resource registration.
  1448         Trace output for resource registration.
  1449 
  1449 
  1450 		Trace data format:
  1450         Trace data format:
  1451 		- 4 bytes containing the Resource Id.
  1451         - 4 bytes containing the Resource Id.
  1452 		- 4 bytes containing the Resource address.
  1452         - 4 bytes containing the Resource address.
  1453 		- N bytes containing the Resource name, where 0 < N < 32
  1453         - 4 bytes containing the Resource Minimum Level
  1454 		- 4 bytes containing the Resource Minimum Level
  1454         - 4 bytes containing the Resource Maximum Level
  1455 		- 4 bytes containing the Resource Maximum Level
  1455         - 4 bytes containing the Resource Default Level
  1456 		- 4 bytes containing the Resource Default Level
  1456         - 4 bytes containing the length of resource name
  1457 		*/
  1457         - N bytes containing the Resource name, where 0 < N < 32
  1458 		ERegisterResource = 0,
  1458         */
  1459 
  1459         ERegisterResource = 0,
  1460 		/**
  1460 
  1461 		Trace output for client registration
  1461         /**
  1462 
  1462         Trace output for client registration
  1463 		Trace data format:
  1463 
  1464 		- 4 bytes containing clientId
  1464         Trace data format:
  1465 		- 4 bytes containing client address
  1465         - 4 bytes containing clientId
  1466 		- N bytes containing client name, where 0 < N < 32
  1466         - 4 bytes containing client address
  1467 		*/
  1467         - 4 bytes containing the length of client name
  1468 		ERegisterClient,
  1468         - N bytes containing client name, where 0 < N < 32
  1469 
  1469         */
  1470 		/**
  1470         ERegisterClient,
  1471 		Trace output for client deregistration
  1471 
  1472 
  1472         /**
  1473 		Trace data format:
  1473         Trace output for client deregistration
  1474 		- 4 bytes containing clientId
  1474 
  1475 		- 4 bytes containing client address
  1475         Trace data format:
  1476 		- N bytes containing client name, where 0 < N < 32
  1476         - 4 bytes containing clientId
  1477 		*/
  1477         - 4 bytes containing client address
  1478 		EDeRegisterClient,
  1478         - 4 bytes containing the length of client name
  1479 
  1479         - N bytes containing client name, where 0 < N < 32
  1480 		/**
  1480         */
  1481 		Trace output for resource state change start operation
  1481         EDeRegisterClient,
  1482 
  1482 
  1483 		Trace data format:
  1483         /**
  1484 		- 4 bytes containing clientId
  1484         Trace output for resource state change start operation
  1485 		- 4 bytes containing the Resource Id.
  1485 
  1486 		- N bytes containing client name, where 0 < N < 32
  1486         Trace data format:
  1487 		- N bytes containing the Resource name, where 0 < N < 32
  1487         - 4 bytes containing clientId
  1488 		- 4 bytes containing the Resource state
  1488         - 4 bytes containing the Resource Id.
  1489 		*/
  1489         - 4 bytes containing the Resource state
  1490 		ESetResourceStateStart,
  1490         - 4 bytes containing the length of client name
  1491 
  1491         - N bytes containing client name, where 0 < N < 32
  1492 		/**
  1492         - 4 bytes containing the length of resource name
  1493 		Trace output for resource state change end operation
  1493         - N bytes containing the Resource name, where 0 < N < 32
  1494 
  1494         */
  1495 		Trace data format:
  1495         ESetResourceStateStart,
  1496 		- 4 bytes containing clientId
  1496 
  1497 		- 4 bytes containing the Resource Id.
  1497         /**
  1498 		- N bytes containing client name, where 0 < N < 32
  1498         Trace output for resource state change end operation
  1499 		- N bytes containing the Resource name, where 0 < N < 32
  1499 
  1500 		- 4 bytes containing return value.
  1500         Trace data format:
  1501 		- 4 bytes containing the Resource state.
  1501         - 4 bytes containing clientId
  1502 		*/
  1502         - 4 bytes containing the Resource Id.
  1503 		ESetResourceStateEnd,
  1503         - 4 bytes containing return value.
  1504 
  1504         - 4 bytes containing the Resource state.
  1505 		/**
  1505         - 4 bytes containing the length of client name
  1506 		Trace output for registration for post notification
  1506         - N bytes containing client name, where 0 < N < 32
  1507 
  1507         - 4 bytes containing the length of resource name        
  1508 		Trace data format:
  1508         - N bytes containing the Resource name, where 0 < N < 32
  1509 		- 4 bytes containing clientId
  1509         */
  1510 		- 4 bytes containing the Resource Id.
  1510         ESetResourceStateEnd,
  1511 		- 4 bytest containing the callback address
  1511 
  1512 		- 4 bytes containing return value.
  1512         /**
  1513 		*/
  1513         Trace output for registration for post notification
  1514 		EPostNotificationRegister,
  1514 
  1515 
  1515         Trace data format:
  1516 		/**
  1516         - 4 bytes containing clientId
  1517 		Trace output for deregistration for post notification
  1517         - 4 bytes containing the Resource Id.
  1518 
  1518         - 4 bytest containing the callback address
  1519 		Trace data format:
  1519         - 4 bytes containing return value.
  1520 		- 4 bytes containing clientId
  1520         */
  1521 		- 4 bytes containing the Resource Id.
  1521         EPostNotificationRegister,
  1522 		- 4 bytes containing the callback address
  1522 
  1523 		- 4 bytes containing the return value.
  1523         /**
  1524 		*/
  1524         Trace output for deregistration for post notification
  1525 		EPostNotificationDeRegister,
  1525 
  1526 
  1526         Trace data format:
  1527 		/**
  1527         - 4 bytes containing clientId
  1528 		Trace output for post notification sent.
  1528         - 4 bytes containing the Resource Id.
  1529 
  1529         - 4 bytes containing the callback address
  1530 		Trace data format:
  1530         - 4 bytes containing the return value.
  1531 		- 4 bytes containing clientId
  1531         */
  1532 		- 4 bytes containing the Resource Id.
  1532         EPostNotificationDeRegister,
  1533 		*/
  1533 
  1534 		EPostNotificationSent,
  1534         /**
  1535 
  1535         Trace output for post notification sent.
  1536 		/**
  1536 
  1537 		Trace output for Callback complete
  1537         Trace data format:
  1538 
  1538         - 4 bytes containing clientId
  1539 		Trace data format:
  1539         - 4 bytes containing the Resource Id.
  1540 		- 4 bytes containing clientId
  1540         */
  1541 		- 4 bytes containing the Resource Id.
  1541         EPostNotificationSent,
  1542 		*/
  1542 
  1543 		ECallbackComplete,
  1543         /**
  1544 
  1544         Trace output for Callback complete
  1545 		/**
  1545 
  1546 		Trace output for resource manager memory usage
  1546         Trace data format:
  1547 
  1547         - 4 bytes containing clientId
  1548 		Trace data format:
  1548         - 4 bytes containing the Resource Id.
  1549 		- 4 bytes containing memory allocated in bytes.
  1549         */
  1550 		*/
  1550         ECallbackComplete,
  1551 		EMemoryUsage,
  1551 
  1552 
  1552         /**
  1553 		/**
  1553         Trace output for resource manager memory usage
  1554 		Trace output for get resource state start operation
  1554 
  1555 
  1555         Trace data format:
  1556 		Trace data format:
  1556         - 4 bytes containing memory allocated in bytes.
  1557 		- 4 bytes containing clientId
  1557         */
  1558 		- 4 bytes containing the Resource Id.
  1558         EMemoryUsage,
  1559 		- N bytes containing client name, where 0 < N < 32
  1559 
  1560 		- N bytes containing the Resource name, where 0 < N < 32
  1560         /**
  1561 		*/
  1561         Trace output for get resource state start operation
  1562 		EGetResourceStateStart,
  1562 
  1563 
  1563         Trace data format:
  1564 		/**
  1564         - 4 bytes containing clientId
  1565 		Trace output for get resource state end operation
  1565         - 4 bytes containing the Resource Id.
  1566 
  1566         - 4 bytes containing the length of client name.
  1567 		Trace data format:
  1567         - N bytes containing client name, where 0 < N < 32
  1568 		- 4 bytes containing clientId
  1568         - 4 bytes containing the length of resource name.
  1569 		- 4 bytes containing the Resource Id.
  1569         - N bytes containing the Resource name, where 0 < N < 32
  1570 		- N bytes containing client name, where 0 < N < 32
  1570         */
  1571 		- N bytes containing the Resource name, where 0 < N < 32
  1571         EGetResourceStateStart,
  1572 		- 4 bytes containing the Resource state
  1572 
  1573 		- 4 bytes containing return value.
  1573         /**
  1574 		*/
  1574         Trace output for get resource state end operation
  1575 		EGetResourceStateEnd,
  1575 
  1576 
  1576         Trace data format:
  1577 		/**
  1577         - 4 bytes containing clientId
  1578 		Trace output for cancellation of long latency operation
  1578         - 4 bytes containing the Resource Id.
  1579 
  1579         - 4 bytes containing the Resource state
  1580 		Trace data format:
  1580         - 4 bytes containing return value.
  1581 		- 4 bytes containing clientId
  1581         - 4 bytes containing the length of client name.
  1582 		- 4 bytes containing the Resource Id.
  1582         - N bytes containing client name, where 0 < N < 32
  1583 		- N bytes containing client name, where 0 < N < 32
  1583         - 4 bytes containing the length of resource name.
  1584 		- N bytes containing the Resource name, where 0 < N < 32
  1584         - N bytes containing the Resource name, where 0 < N < 32
  1585 		- 4 bytes containing return value
  1585         */
  1586 		*/
  1586         EGetResourceStateEnd,
  1587 		ECancelLongLatencyOperation,
  1587 
  1588 
  1588         /**
  1589 		/**
  1589         Trace output for cancellation of long latency operation
  1590 		Trace output for booting of resource manager
  1590 
  1591 
  1591         Trace data format:
  1592 		Trace data format:
  1592         - 4 bytes containing clientId
  1593 		- 4 bytes containing entry point
  1593         - 4 bytes containing the Resource Id.
  1594 		*/
  1594         - 4 bytes containing return value
  1595 		EBooting,
  1595         - 4 bytes containing the length of client name.
  1596 
  1596         - N bytes containing client name, where 0 < N < 32
  1597 		/**
  1597         - 4 bytes containing the length of resource name.
  1598 		Trace output for PSL resource state change operation
  1598         - N bytes containing the Resource name, where 0 < N < 32
  1599 
  1599         */
  1600 		Trace data format:
  1600         ECancelLongLatencyOperation,
  1601 		- 4 bytes containing clientId
  1601 
  1602 		- 4 bytes containing the Resource Id.
  1602         /**
  1603 		- N bytes containing the Resource name, where 0 < N < 32
  1603         Trace output for booting of resource manager
  1604 		- 4 bytes containing the Resource current state
  1604 
  1605 		- 4 bytes containing the resource requested state
  1605         Trace data format:
  1606 		*/
  1606         - 4 bytes containing entry point
  1607 		EPslChangeResourceStateStart,
  1607         */
  1608 
  1608         EBooting,
  1609 		/**
  1609 
  1610 		Trace output for PSL resource state change operation
  1610         /**
  1611 
  1611         Trace output for PSL resource state change operation
  1612 		Trace data format:
  1612 
  1613 		- 4 bytes containing clientId
  1613         Trace data format:
  1614 		- 4 bytes containing the Resource Id.
  1614         - 4 bytes containing clientId
  1615 		- N bytes containing the Resource name, where 0 < N < 32
  1615         - 4 bytes containing the Resource Id.
  1616 		- 4 bytes containing the Resource current state
  1616         - 4 bytes containing the Resource current state
  1617 		- 4 bytes containing the resource requested state
  1617         - 4 bytes containing the resource requested state
  1618 		- 4 bytes containing return value
  1618         - 4 bytes containing the length of resource name.
  1619 		*/
  1619         - N bytes containing the Resource name, where 0 < N < 32
  1620 		EPslChangeResourceStateEnd,
  1620         */
  1621 
  1621         EPslChangeResourceStateStart,
  1622 		/**
  1622 
  1623 		Trace output for get resource state start operation in PSL
  1623         /**
  1624 
  1624         Trace output for PSL resource state change operation
  1625 		Trace data format:
  1625 
  1626 		- 4 bytes containing clientId
  1626         Trace data format:
  1627 		- 4 bytes containing the Resource Id.
  1627         - 4 bytes containing clientId
  1628 		- N bytes containing the Resource name, where 0 < N < 32
  1628         - 4 bytes containing the Resource Id.
  1629 		*/
  1629         - 4 bytes containing the Resource current state
  1630 		EPslGetResourceStateStart,
  1630         - 4 bytes containing the resource requested state
  1631 
  1631         - 4 bytes containing return value
  1632 		/**
  1632         - 4 bytes containing the length of resource name.
  1633 		Trace output for get resource state end operation in PSL
  1633         - N bytes containing the Resource name, where 0 < N < 32
  1634 
  1634         */
  1635 		Trace data format:
  1635         EPslChangeResourceStateEnd,
  1636 		- 4 bytes containing clientId
  1636 
  1637 		- 4 bytes containing the Resource Id.
  1637         /**
  1638 		- N bytes containing the Resource name, where 0 < N < 32
  1638         Trace output for get resource state start operation in PSL
  1639 		- 4 bytes containing the Resource state
  1639 
  1640 		- 4 bytes containing return value.
  1640         Trace data format:
  1641 		*/
  1641         - 4 bytes containing clientId
  1642 		EPslGetResourceStateEnd,
  1642         - 4 bytes containing the Resource Id.
  1643 
  1643         - 4 bytes containing the length of resource name.
  1644 		/**
  1644         - N bytes containing the Resource name, where 0 < N < 32
  1645 		Trace output for resource creation
  1645         */
  1646 
  1646         EPslGetResourceStateStart,
  1647 		Trace data format:
  1647 
  1648 		- 4 bytes containing minimum value of resource
  1648         /**
  1649 		- 4 bytes containing maximum value of resource
  1649         Trace output for get resource state end operation in PSL
  1650 		- 4 bytes containing the default value of resource
  1650 
  1651 		- 4 bytes containing the properties of the resource
  1651         Trace data format:
  1652 		- N bytes containing the Resource name, where 0 < N < 32
  1652         - 4 bytes containing clientId
  1653 		*/
  1653         - 4 bytes containing the Resource Id.
  1654 		EPslResourceCreate,
  1654         - 4 bytes containing the Resource state
  1655 
  1655         - 4 bytes containing return value.
  1656 		/**
  1656         - 4 bytes containing the length of resource name.
  1657 		Trace output for static resource with dependency registration
  1657         - N bytes containing the Resource name, where 0 < N < 32
  1658 
  1658         */
  1659 		Trace data format:
  1659         EPslGetResourceStateEnd,
  1660 		- 4 bytes containing the Resource Id
  1660 
  1661 		- 4 bytes containing the Resource address
  1661         /**
  1662 		- N bytes containing the Resource name, where 0 < N < 32
  1662         Trace output for resource creation
  1663 		- 4 bytes containing the minimum value of resource
  1663 
  1664 		- 4 bytes containing the maximum value of resource
  1664         Trace data format:
  1665 		- 4 bytes containing the default value of resource
  1665         - 4 bytes containing minimum value of resource
  1666 		*/
  1666         - 4 bytes containing maximum value of resource
  1667 		ERegisterStaticResourceWithDependency,
  1667         - 4 bytes containing the default value of resource
  1668 
  1668         - 4 bytes containing the properties of the resource
  1669 		/**
  1669         - 4 bytes containing the length of resource name.
  1670 		Trace output for dynamic resource registration
  1670         - N bytes containing the Resource name, where 0 < N < 32
  1671 
  1671         */
  1672 		Trace data format:
  1672         EPslResourceCreate,
  1673 		- 4 bytes containing clientId
  1673 
  1674 		- 4 bytes containing the Resource Id
  1674         /**
  1675 		- N bytes containing the client name, where 0 < N < 32
  1675         Trace output for static resource with dependency registration
  1676 		- N bytes containing the resource name, where 0 < N < 32
  1676 
  1677 		- 4 bytes containing the resouce address
  1677         Trace data format:
  1678 		*/
  1678         - 4 bytes containing the Resource Id
  1679 		ERegisterDynamicResource,
  1679         - 4 bytes containing the Resource address
  1680 
  1680         - 4 bytes containing the minimum value of resource
  1681 		/**
  1681         - 4 bytes containing the maximum value of resource
  1682 		Trace output for dynamic resource deregistration
  1682         - 4 bytes containing the default value of resource
  1683 
  1683         - 4 bytes containing the length of resource name
  1684 		Trace data format:
  1684         - N bytes containing the Resource name, where 0 < N < 32
  1685 		- 4 bytes containing clientId
  1685         */
  1686 		- 4 bytes containing the Resource Id
  1686         ERegisterStaticResourceWithDependency,
  1687 		- N bytes containing the client name, where 0 < N < 32
  1687 
  1688 		- N bytes containing the resource name, where 0 < N < 32
  1688         /**
  1689 		- 4 bytes containing the resource address
  1689         Trace output for dynamic resource registration
  1690 		- 4 bytes containing the resource level.
  1690 
  1691 		*/
  1691         Trace data format:
  1692 		EDeRegisterDynamicResource,
  1692         - 4 bytes containing clientId
  1693 
  1693         - 4 bytes containing the Resource Id
  1694 		/**
  1694         - 4 bytes containing the resouce address
  1695 		Trace output for resource dependency registration
  1695         - 4 bytes containing the length of client name
  1696 
  1696         - N bytes containing the client name, where 0 < N < 32
  1697 		Trace data format:
  1697         - 4 bytes containing the length of resource name
  1698 		- 4 bytes containing clientId
  1698         - N bytes containing the resource name, where 0 < N < 32
  1699 		- 4 bytes containing the Resource Id of first dependent resource
  1699         */
  1700 		- N bytes containing the client name, where 0 < N < 32
  1700         ERegisterDynamicResource,
  1701 		- N bytes containing the resource name of first dependent resource, where 0 < N < 32
  1701 
  1702 		- 4 bytes containing the Resource Id of second dependent resource
  1702         /**
  1703 		- N bytes containing the resource name of second dependent resource, where 0 < N < 32
  1703         Trace output for dynamic resource deregistration
  1704 		- 4 bytes containing the address of first dependent resource
  1704 
  1705 		- 4 bytes containing the address of second dependent resource
  1705         Trace data format:
  1706 		*/
  1706         - 4 bytes containing clientId
  1707 		ERegisterResourceDependency,
  1707         - 4 bytes containing the Resource Id
  1708 
  1708         - 4 bytes containing the resource address
  1709 		/**
  1709         - 4 bytes containing the resource level.
  1710 		Trace output for resource dependency deregistration
  1710         - 4 bytes containing the length of client name
  1711 
  1711         - N bytes containing the client name, where 0 < N < 32
  1712 		Trace data format:
  1712         - 4 bytes containing the length of resource name
  1713 		- 4 bytes containing clientId
  1713         - N bytes containing the resource name, where 0 < N < 32
  1714 		- 4 bytes containing the Resource Id of first dependent resource
  1714         */
  1715 		- N bytes containing the client name, where 0 < N < 32
  1715         EDeRegisterDynamicResource,
  1716 		- N bytes containing the resource name of first dependent resource, where 0 < N < 32
  1716 
  1717 		- 4 bytes containing the resource id of second dependent resource
  1717         /**
  1718 		- N bytes containing the resource name of second dependent resource, where 0 < N < 32
  1718         Trace output for resource dependency registration
  1719 		- 4 bytes containing the address of first dependent resource
  1719 
  1720 		- 4 bytes containing the address of second dependent resource
  1720         Trace data format:
  1721 		*/
  1721         - 4 bytes containing clientId
  1722 		EDeRegisterResourceDependency
  1722         - 4 bytes containing the Resource Id of first dependent resource
  1723 		};
  1723         - 4 bytes containing the Resource Id of second dependent resource
  1724 	/**
  1724         - 4 bytes containing the address of first dependent resource
  1725 	Enumeration of sub-category values for trace category EResourceManagerUs.
  1725         - 4 bytes containing the address of second dependent resource
  1726 	@see EResourceManagerUs
  1726         - 4 bytes containing the length of client name
  1727 	@prototype 9.5
  1727         - N bytes containing the client name, where 0 < N < 32
  1728 	*/
  1728         - 4 bytes containing the length of resource name of first dependent resource
  1729 	enum TResourceManagerUs
  1729         - N bytes containing the resource name of first dependent resource, where 0 < N < 32
  1730 		{
  1730         - 4 bytes containing the length of resource name of second dependent resource
  1731 		/**
  1731         - N bytes containing the resource name of second dependent resource, where 0 < N < 32
  1732 		Trace output for the start of opening a channel to the Resource Controller.
  1732         */
  1733 
  1733         ERegisterResourceDependency,
  1734 		Trace data format:
  1734 
  1735 		- 4 bytes unused (displays 0)
  1735         /**
  1736 		- 4 bytes containing the client thread identifier.
  1736         Trace output for resource dependency deregistration
  1737 		- N bytes containing the client name, where 0 < N < 32
  1737 
  1738 		*/
  1738         Trace data format:
  1739 		EOpenChannelUsStart = 0,
  1739         - 4 bytes containing clientId
  1740 		/**
  1740         - 4 bytes containing the Resource Id of first dependent resource
  1741 		Trace output for the end of opening a channel to the Resource Controller.
  1741         - 4 bytes containing the resource id of second dependent resource
  1742 
  1742         - 4 bytes containing the address of first dependent resource
  1743 		Trace data format:
  1743         - 4 bytes containing the address of second dependent resource
  1744 		- 4 bytes unused (displays 0)
  1744         - 4 bytes containing the length of client name
  1745 		- 4 bytes containing the client identifier provided by the Resource Controller
  1745         - N bytes containing the client name, where 0 < N < 32
  1746 		- N bytes containing the client name, where 0 < N < 32
  1746         - 4 bytes containing the length of resource name of first dependent resource
  1747 		*/
  1747         - N bytes containing the resource name of first dependent resource, where 0 < N < 32
  1748 		EOpenChannelUsEnd,
  1748         - 4 bytes containing the length of resource name of second dependent resource
  1749 		/**
  1749         - N bytes containing the resource name of second dependent resource, where 0 < N < 32
  1750 		Trace output for the start of registering a client with the Resource Controller.
  1750         */
  1751 
  1751         EDeRegisterResourceDependency
  1752 		Trace data format:
  1752         };
  1753 		- 4 bytes the number of concurrent change resource state operations to be supported
  1753     /**
  1754 		- 4 bytes the number of concurrent notification requests to be supported
  1754     Enumeration of sub-category values for trace category EResourceManagerUs.
  1755 		- N bytes containing the client name, where 0 < N < 32
  1755     @see EResourceManagerUs
  1756 		- 4 bytes the number of concurrent get resource state operations to be supported
  1756     @prototype 9.5
  1757 		*/
  1757     */
  1758 		ERegisterClientUsStart,
  1758     enum TResourceManagerUs
  1759 		/**
  1759         {
  1760 		Trace output for the end of registering a client with the Resource Controller.
  1760         /**
  1761 
  1761         Trace output for the start of opening a channel to the Resource Controller.
  1762 		Trace data format:
  1762 
  1763 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1763         Trace data format:
  1764 		- 4 bytes specifying the value returned from the call to Resource Controller's AllocReserve method
  1764         - 4 bytes containing the client thread identifier.
  1765 		*/
  1765         - 4 bytes containing the length of client name.
  1766 		ERegisterClientUsEnd,
  1766         - N bytes containing the client name, where 0 < N < 32
  1767 		/**
  1767         */
  1768 		Trace output for the start of de-registering a client with the Resource Controller.
  1768         EOpenChannelUsStart = 0,
  1769 
  1769         /**
  1770 		Trace data format:
  1770         Trace output for the end of opening a channel to the Resource Controller.
  1771 		- 4 bytes unused (displays 0)
  1771 
  1772 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1772         Trace data format:
  1773 		- N bytes containing the client name, where 0 < N < 32
  1773         - 4 bytes containing the client identifier provided by the Resource Controller
  1774 		*/
  1774         - 4 bytes containing the length of client name.
  1775 		EDeRegisterClientUsStart,
  1775         - N bytes containing the client name, where 0 < N < 32
  1776 		/**
  1776         */
  1777 		Trace output for the end of registering a client with the Resource Controller.
  1777         EOpenChannelUsEnd,
  1778 
  1778         /**
  1779 		Trace data format:
  1779         Trace output for the start of registering a client with the Resource Controller.
  1780 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1780 
  1781 		*/
  1781         Trace data format:
  1782 		EDeRegisterClientUsEnd,
  1782         - 4 bytes containing the client identifier provided by the Resource Controller
  1783 		/**
  1783         - 1 bytes the number of concurrent change resource state operations to be supported
  1784 		Trace output for the start of a GetResourceState request to the Resource Controller.
  1784         - 1 bytes the number of concurrent notification requests to be supported        
  1785 
  1785         - 1 bytes the number of concurrent get resource state operations to be supported
  1786 		Trace data format:
  1786         - 1 bytes unused        
  1787 		- 4 bytes specifying the resource ID
  1787         - 4 bytes containing the length of client name.
  1788 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1788         - N bytes containing the client name, where 0 < N < 32
  1789 		- N bytes containing the client name, where 0 < N < 32
  1789         */
  1790 		*/
  1790         ERegisterClientUsStart,
  1791 		EGetResourceStateUsStart,
  1791         /**
  1792 		/**
  1792         Trace output for the end of registering a client with the Resource Controller.
  1793 		Trace output for the end of a GetResourceState request to the Resource Controller.
  1793 
  1794 
  1794         Trace data format:
  1795 		Trace data format:
  1795         - 4 bytes containing the client identifier provided by the Resource Controller.
  1796 		- 4 bytes specifying the resource ID
  1796         - 4 bytes specifying the value returned from the call to Resource Controller's AllocReserve method
  1797 		- 4 bytes specifying the resource level
  1797         */
  1798 		- 4 bytes containing the client identifier
  1798         ERegisterClientUsEnd,
  1799 		- 4 bytes specifying the success code returned by the Resource Controller.
  1799         /**
  1800 		*/
  1800         Trace output for the start of de-registering a client with the Resource Controller.
  1801 		EGetResourceStateUsEnd,
  1801 
  1802 		/**
  1802         Trace data format:
  1803 		Trace output for the start of a ChangeResourceState request to the Resource Controller.
  1803         - 4 bytes containing the client identifier provided by the Resource Controller.
  1804 
  1804         - 4 bytes containing the length of client name.
  1805 		Trace data format:
  1805         - N bytes containing the client name, where 0 < N < 32
  1806 		- 4 bytes specifying the resource ID
  1806         */
  1807 		- 4 bytes specifying the required state
  1807         EDeRegisterClientUsStart,
  1808 		- N bytes containing the client name, where 0 < N < 32
  1808         /**
  1809 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1809         Trace output for the end of registering a client with the Resource Controller.
  1810 		*/
  1810 
  1811 		ESetResourceStateUsStart,
  1811         Trace data format:
  1812 		/**
  1812         - 4 bytes containing the client identifier provided by the Resource Controller.
  1813 		Trace output for the end of a ChangeResourceState request to the Resource Controller.
  1813         */
  1814 
  1814         EDeRegisterClientUsEnd,
  1815 		Trace data format:
  1815         /**
  1816 		- 4 bytes specifying the resource ID
  1816         Trace output for the start of a GetResourceState request to the Resource Controller.
  1817 		- 4 bytes specifying the requested state
  1817 
  1818 		- 4 bytes containing the client identifier
  1818         Trace data format:
  1819 		- 4 bytes specifying the success code returned by the Resource Controller.
  1819         - 4 bytes specifying the resource ID
  1820 		*/
  1820         - 4 bytes containing the client identifier provided by the Resource Controller.
  1821 		ESetResourceStateUsEnd,
  1821         - 4 bytes containing the length of client name.
  1822 		/**
  1822         - N bytes containing the client name, where 0 < N < 32
  1823 		Trace output for the start of a cancel GetResourceState request to the Resource Controller.
  1823         */
  1824 
  1824         EGetResourceStateUsStart,
  1825 		Trace data format:
  1825         /**
  1826 		- 4 bytes specifying the resource ID
  1826         Trace output for the end of a GetResourceState request to the Resource Controller.
  1827 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1827 
  1828 		- N bytes containing the client name, where 0 < N < 32
  1828         Trace data format:
  1829 		*/
  1829         - 4 bytes specifying the resource ID
  1830 		ECancelGetResourceStateUsStart,
  1830         - 4 bytes specifying the resource level
  1831 		/**
  1831         - 4 bytes containing the client identifier
  1832 		Trace output for the end of a cancel GetResourceState request to the Resource Controller.
  1832         - 4 bytes specifying the success code returned by the Resource Controller.
  1833 
  1833         */
  1834 		Trace data format:
  1834         EGetResourceStateUsEnd,
  1835 		- 4 bytes specifying the resource ID
  1835         /**
  1836 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1836         Trace output for the start of a ChangeResourceState request to the Resource Controller.
  1837 		- N bytes containing the client name, where 0 < N < 32
  1837 
  1838 		*/
  1838         Trace data format:
  1839 		ECancelGetResourceStateUsEnd,
  1839         - 4 bytes specifying the resource ID
  1840 		/**
  1840         - 4 bytes specifying the required state
  1841 		Trace output for the start of a cancel ChangeResourceState request to the Resource Controller.
  1841         - 4 bytes containing the client identifier provided by the Resource Controller.
  1842 
  1842         - 4 bytes containing the length of client name.
  1843 		Trace data format:
  1843         - N bytes containing the client name, where 0 < N < 32
  1844 		- 4 bytes specifying the resource ID
  1844         */
  1845 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1845         ESetResourceStateUsStart,
  1846 		- N bytes containing the client name, where 0 < N < 32
  1846         /**
  1847 		*/
  1847         Trace output for the end of a ChangeResourceState request to the Resource Controller.
  1848 		ECancelSetResourceStateUsStart,
  1848 
  1849 		/**
  1849         Trace data format:
  1850 		Trace output for the end of a cancel ChangeResourceState request to the Resource Controller.
  1850         - 4 bytes specifying the resource ID
  1851 
  1851         - 4 bytes specifying the requested state
  1852 		Trace data format:
  1852         - 4 bytes containing the client identifier
  1853 		- 4 bytes specifying the resource ID
  1853         - 4 bytes specifying the success code returned by the Resource Controller.
  1854 		- 4 bytes containing the client identifier provided by the Resource Controller.
  1854         */
  1855 		- N bytes containing the client name, where 0 < N < 32
  1855         ESetResourceStateUsEnd,
  1856 		*/
  1856         /**
  1857 		ECancelSetResourceStateUsEnd
  1857         Trace output for the start of a cancel GetResourceState request to the Resource Controller.
  1858 		};
  1858 
  1859 
  1859         Trace data format:
  1860 	/**
  1860         - 4 bytes specifying the resource ID
  1861 	Enumeration of sub-category values for trace category EThreadPriority.
  1861         - 4 bytes containing the client identifier provided by the Resource Controller.
  1862 	@see EThreadPriority
  1862         - 4 bytes containing the length of client name.
  1863 	@internalTechnology
  1863         - N bytes containing the client name, where 0 < N < 32
  1864 	@prototype 9.3
  1864         */
  1865 	*/
  1865         ECancelGetResourceStateUsStart,
  1866 	enum TThreadPriority
  1866         /**
  1867 		{
  1867         Trace output for the end of a cancel GetResourceState request to the Resource Controller.
  1868 		/**
  1868 
  1869 		Trace output when a nanothread priority is changed.
  1869         Trace data format:
  1870 
  1870         - 4 bytes specifying the resource ID
  1871 		Trace data format:
  1871         - 4 bytes containing the client identifier provided by the Resource Controller.
  1872 		- 4 bytes containing the context id (an NThread*) for the thread whose priority is changing.
  1872         - 4 bytes containing the length of client name.
  1873 		- 4 bytes containing the new absolute priority.
  1873         - N bytes containing the client name, where 0 < N < 32
  1874 		*/
  1874         */
  1875 		ENThreadPriority=0,
  1875         ECancelGetResourceStateUsEnd,
  1876 
  1876         /**
  1877 		/**
  1877         Trace output for the start of a cancel ChangeResourceState request to the Resource Controller.
  1878 		Trace output when a DThread's default priority is set.
  1878 
  1879 
  1879         Trace data format:
  1880 		Trace data format:
  1880         - 4 bytes specifying the resource ID
  1881 		- 4 bytes containing the context id (an NThread*) for the thread whose priority is changing.
  1881         - 4 bytes containing the client identifier provided by the Resource Controller.
  1882 		- 4 bytes containing the iThreadPriority member - a value from enum ::TThrdPriority.
  1882         - 4 bytes containing the length of client name.
  1883 		- 4 bytes containing the new default absolute priority.
  1883         - N bytes containing the client name, where 0 < N < 32
  1884 		*/
  1884         */
  1885 		EDThreadPriority=1,
  1885         ECancelSetResourceStateUsStart,
  1886 
  1886         /**
  1887 		/**
  1887         Trace output for the end of a cancel ChangeResourceState request to the Resource Controller.
  1888 		Trace output when a DProcess priority is changed.
  1888 
  1889 
  1889         Trace data format:
  1890 		Trace data format:
  1890         - 4 bytes specifying the resource ID
  1891 		- 4 bytes containing trace id (a DProcess*) for process.
  1891         - 4 bytes containing the client identifier provided by the Resource Controller.
  1892 		- 4 bytes containing the new process priority, a value from enum ::TProcPriority
  1892         - 4 bytes containing the length of client name.
  1893 		*/
  1893         - N bytes containing the client name, where 0 < N < 32
  1894 		EProcessPriority=2
  1894         */
  1895 		};
  1895         ECancelSetResourceStateUsEnd
       
  1896         };
       
  1897 
       
  1898     /**
       
  1899     Enumeration of sub-category values for trace category EThreadPriority.
       
  1900     @see EThreadPriority
       
  1901     @internalTechnology
       
  1902     @prototype 9.3
       
  1903     */
       
  1904     enum TThreadPriority
       
  1905         {
       
  1906         /**
       
  1907         Trace output when a nanothread priority is changed.
       
  1908 
       
  1909         Trace data format:
       
  1910         - 4 bytes containing the context id (an NThread*) for the thread whose priority is changing.
       
  1911         - 4 bytes containing the new absolute priority.
       
  1912         */
       
  1913         ENThreadPriority=0,
       
  1914 
       
  1915         /**
       
  1916         Trace output when a DThread's default priority is set.
       
  1917 
       
  1918         Trace data format:
       
  1919         - 4 bytes containing the context id (an NThread*) for the thread whose priority is changing.
       
  1920         - 4 bytes containing the iThreadPriority member - a value from enum ::TThrdPriority.
       
  1921         - 4 bytes containing the new default absolute priority.
       
  1922         */
       
  1923         EDThreadPriority=1,
       
  1924 
       
  1925         /**
       
  1926         Trace output when a DProcess priority is changed.
       
  1927 
       
  1928         Trace data format:
       
  1929         - 4 bytes containing trace id (a DProcess*) for process.
       
  1930         - 4 bytes containing the new process priority, a value from enum ::TProcPriority
       
  1931         */
       
  1932         EProcessPriority=2
       
  1933         };
  1896 
  1934 
  1897 	/**
  1935 	/**
  1898 	Enumeration of sub-category values for trace category EPagingMedia.
  1936 	Enumeration of sub-category values for trace category EPagingMedia.
  1899 	@see EPagingMedia
  1937 	@see EPagingMedia
  1900 	*/
  1938 	*/
  3911 	static void Init0();
  3949 	static void Init0();
  3912 
  3950 
  3913 	/**
  3951 	/**
  3914 	@internalComponent
  3952 	@internalComponent
  3915 	*/
  3953 	*/
  3916 	typedef TBool(*TBTrace1)(TUint32);
       
  3917 
       
  3918 	/**
       
  3919 	@internalComponent
       
  3920 	*/
       
  3921 	typedef TBool(*TBTrace2)(TUint32,TUint32);
       
  3922 
       
  3923 	/**
       
  3924 	@internalComponent
       
  3925 	*/
       
  3926 	typedef TBool(*TBTrace3)(TUint32,TUint32,TUint32);
       
  3927 
       
  3928 	/**
       
  3929 	@internalComponent
       
  3930 	*/
       
  3931 	struct SExecExtension
  3954 	struct SExecExtension
  3932 		{
  3955 		{
  3933 		TUint32 iA2;
  3956 		TUint32 iA2;
  3934 		TUint32 iA3;
  3957 		TUint32 iA3;
  3935 		TUint32 iPc;
  3958 		TUint32 iPc;
  4047 @return True if trace is enabled for aCategory, false otherwise.
  4070 @return True if trace is enabled for aCategory, false otherwise.
  4048 @publishedPartner
  4071 @publishedPartner
  4049 @released
  4072 @released
  4050 */
  4073 */
  4051 #define BTrace0(aCategory,aSubCategory) \
  4074 #define BTrace0(aCategory,aSubCategory) \
  4052 	((BTrace::TBTrace1)BTrace::Out) \
  4075 	BTrace::Out \
  4053 		(BTRACE_HEADER(4,(aCategory),(aSubCategory)))
  4076 		(BTRACE_HEADER(4,(aCategory),(aSubCategory)),0,0,0)
  4054 
  4077 
  4055 /**
  4078 /**
  4056 Output a trace record of the specified category.
  4079 Output a trace record of the specified category.
  4057 
  4080 
  4058 The trace record data is 4 bytes in size.
  4081 The trace record data is 4 bytes in size.
  4065 @return True if trace is enabled for aCategory, false otherwise.
  4088 @return True if trace is enabled for aCategory, false otherwise.
  4066 @publishedPartner
  4089 @publishedPartner
  4067 @released
  4090 @released
  4068 */
  4091 */
  4069 #define BTrace4(aCategory,aSubCategory,a1) \
  4092 #define BTrace4(aCategory,aSubCategory,a1) \
  4070 	((BTrace::TBTrace2)BTrace::Out) \
  4093 	BTrace::Out \
  4071 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4094 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4072 
  4095 
  4073 /**
  4096 /**
  4074 Output a trace record of the specified category.
  4097 Output a trace record of the specified category.
  4075 
  4098 
  4076 The trace record data is 8 bytes in size.
  4099 The trace record data is 8 bytes in size.
  4084 @return True if trace is enabled for aCategory, false otherwise.
  4107 @return True if trace is enabled for aCategory, false otherwise.
  4085 @publishedPartner
  4108 @publishedPartner
  4086 @released
  4109 @released
  4087 */
  4110 */
  4088 #define BTrace8(aCategory,aSubCategory,a1,a2) \
  4111 #define BTrace8(aCategory,aSubCategory,a1,a2) \
  4089 	((BTrace::TBTrace3)BTrace::Out) \
  4112 	BTrace::Out \
  4090 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4113 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4091 
  4114 
  4092 /**
  4115 /**
  4093 Output a trace record of the specified category.
  4116 Output a trace record of the specified category.
  4094 
  4117 
  4095 The trace record data is 12 bytes in size.
  4118 The trace record data is 12 bytes in size.
  4167 @return True if trace is enabled for aCategory, false otherwise.
  4190 @return True if trace is enabled for aCategory, false otherwise.
  4168 @publishedPartner
  4191 @publishedPartner
  4169 @released
  4192 @released
  4170 */
  4193 */
  4171 #define BTraceContext0(aCategory,aSubCategory) \
  4194 #define BTraceContext0(aCategory,aSubCategory) \
  4172 	((BTrace::TBTrace1)BTrace::OutX) \
  4195 	BTrace::OutX \
  4173 		(BTRACE_HEADER_C(4,(aCategory),(aSubCategory)))
  4196 		(BTRACE_HEADER_C(4,(aCategory),(aSubCategory)),0,0,0)
  4174 
  4197 
  4175 /**
  4198 /**
  4176 Output a trace record of the specified category which also includes a Context ID.
  4199 Output a trace record of the specified category which also includes a Context ID.
  4177 
  4200 
  4178 The trace record data is 4 bytes in size.
  4201 The trace record data is 4 bytes in size.
  4185 @return True if trace is enabled for aCategory, false otherwise.
  4208 @return True if trace is enabled for aCategory, false otherwise.
  4186 @publishedPartner
  4209 @publishedPartner
  4187 @released
  4210 @released
  4188 */
  4211 */
  4189 #define BTraceContext4(aCategory,aSubCategory,a1) \
  4212 #define BTraceContext4(aCategory,aSubCategory,a1) \
  4190 	((BTrace::TBTrace2)BTrace::OutX) \
  4213 	BTrace::OutX \
  4191 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4214 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4192 
  4215 
  4193 /**
  4216 /**
  4194 Output a trace record of the specified category which also includes a Context ID.
  4217 Output a trace record of the specified category which also includes a Context ID.
  4195 
  4218 
  4196 The trace record data is 8 bytes in size.
  4219 The trace record data is 8 bytes in size.
  4204 @return True if trace is enabled for aCategory, false otherwise.
  4227 @return True if trace is enabled for aCategory, false otherwise.
  4205 @publishedPartner
  4228 @publishedPartner
  4206 @released
  4229 @released
  4207 */
  4230 */
  4208 #define BTraceContext8(aCategory,aSubCategory,a1,a2) \
  4231 #define BTraceContext8(aCategory,aSubCategory,a1,a2) \
  4209 	((BTrace::TBTrace3)BTrace::OutX) \
  4232 	BTrace::OutX \
  4210 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4233 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4211 
  4234 
  4212 /**
  4235 /**
  4213 Output a trace record of the specified category which also includes a Context ID.
  4236 Output a trace record of the specified category which also includes a Context ID.
  4214 
  4237 
  4215 The trace record data is 12 bytes in size.
  4238 The trace record data is 12 bytes in size.
  4287 @return True if trace is enabled for aCategory, false otherwise.
  4310 @return True if trace is enabled for aCategory, false otherwise.
  4288 @publishedPartner
  4311 @publishedPartner
  4289 @released
  4312 @released
  4290 */
  4313 */
  4291 #define BTracePc0(aCategory,aSubCategory) \
  4314 #define BTracePc0(aCategory,aSubCategory) \
  4292 	((BTrace::TBTrace1)BTrace::Out) \
  4315 	BTrace::Out \
  4293 		(BTRACE_HEADER_P(4,(aCategory),(aSubCategory)))
  4316 		(BTRACE_HEADER_P(4,(aCategory),(aSubCategory)),0,0,0)
  4294 
  4317 
  4295 /**
  4318 /**
  4296 Output a trace record of the specified category which also includes a Program Counter value.
  4319 Output a trace record of the specified category which also includes a Program Counter value.
  4297 
  4320 
  4298 The trace record data is 4 bytes in size.
  4321 The trace record data is 4 bytes in size.
  4305 @return True if trace is enabled for aCategory, false otherwise.
  4328 @return True if trace is enabled for aCategory, false otherwise.
  4306 @publishedPartner
  4329 @publishedPartner
  4307 @released
  4330 @released
  4308 */
  4331 */
  4309 #define BTracePc4(aCategory,aSubCategory,a1)	\
  4332 #define BTracePc4(aCategory,aSubCategory,a1)	\
  4310 	((BTrace::TBTrace2)BTrace::Out) \
  4333 	BTrace::Out \
  4311 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4334 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4312 
  4335 
  4313 /**
  4336 /**
  4314 Output a trace record of the specified category which also includes a Program Counter value.
  4337 Output a trace record of the specified category which also includes a Program Counter value.
  4315 
  4338 
  4316 The trace record data is 8 bytes in size.
  4339 The trace record data is 8 bytes in size.
  4324 @return True if trace is enabled for aCategory, false otherwise.
  4347 @return True if trace is enabled for aCategory, false otherwise.
  4325 @publishedPartner
  4348 @publishedPartner
  4326 @released
  4349 @released
  4327 */
  4350 */
  4328 #define BTracePc8(aCategory,aSubCategory,a1,a2) \
  4351 #define BTracePc8(aCategory,aSubCategory,a1,a2) \
  4329 	((BTrace::TBTrace3)BTrace::Out) \
  4352 	BTrace::Out \
  4330 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4353 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4331 
  4354 
  4332 /**
  4355 /**
  4333 Output a trace record of the specified category which also includes a Program Counter value.
  4356 Output a trace record of the specified category which also includes a Program Counter value.
  4334 
  4357 
  4335 The trace record data is 12 bytes in size.
  4358 The trace record data is 12 bytes in size.
  4409 @return True if trace is enabled for aCategory, false otherwise.
  4432 @return True if trace is enabled for aCategory, false otherwise.
  4410 @publishedPartner
  4433 @publishedPartner
  4411 @released
  4434 @released
  4412 */
  4435 */
  4413 #define BTraceContextPc0(aCategory,aSubCategory)	\
  4436 #define BTraceContextPc0(aCategory,aSubCategory)	\
  4414 	((BTrace::TBTrace1)BTrace::OutX) \
  4437 	BTrace::OutX \
  4415 		(BTRACE_HEADER_CP(4,(aCategory),(aSubCategory)))
  4438 		(BTRACE_HEADER_CP(4,(aCategory),(aSubCategory)),0,0,0)
  4416 
  4439 
  4417 /**
  4440 /**
  4418 Output a trace record of the specified category which also includes
  4441 Output a trace record of the specified category which also includes
  4419 Context ID and Program Counter values.
  4442 Context ID and Program Counter values.
  4420 
  4443 
  4428 @return True if trace is enabled for aCategory, false otherwise.
  4451 @return True if trace is enabled for aCategory, false otherwise.
  4429 @publishedPartner
  4452 @publishedPartner
  4430 @released
  4453 @released
  4431 */
  4454 */
  4432 #define BTraceContextPc4(aCategory,aSubCategory,a1) \
  4455 #define BTraceContextPc4(aCategory,aSubCategory,a1) \
  4433 	((BTrace::TBTrace2)BTrace::OutX) \
  4456 	BTrace::OutX \
  4434 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4457 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4435 
  4458 
  4436 /**
  4459 /**
  4437 Output a trace record of the specified category which also includes
  4460 Output a trace record of the specified category which also includes
  4438 Context ID and Program Counter values.
  4461 Context ID and Program Counter values.
  4439 
  4462 
  4448 @return True if trace is enabled for aCategory, false otherwise.
  4471 @return True if trace is enabled for aCategory, false otherwise.
  4449 @publishedPartner
  4472 @publishedPartner
  4450 @released
  4473 @released
  4451 */
  4474 */
  4452 #define BTraceContextPc8(aCategory,aSubCategory,a1,a2) \
  4475 #define BTraceContextPc8(aCategory,aSubCategory,a1,a2) \
  4453 	((BTrace::TBTrace3)BTrace::OutX) \
  4476 	BTrace::OutX \
  4454 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4477 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4455 
  4478 
  4456 /**
  4479 /**
  4457 Output a trace record of the specified category which also includes
  4480 Output a trace record of the specified category which also includes
  4458 Context ID and Program Counter values.
  4481 Context ID and Program Counter values.
  4459 
  4482 
  4537 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4560 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4538 @publishedPartner
  4561 @publishedPartner
  4539 @released
  4562 @released
  4540 */
  4563 */
  4541 #define BTraceFiltered4(aCategory,aSubCategory,aUid) \
  4564 #define BTraceFiltered4(aCategory,aSubCategory,aUid) \
  4542 	((BTrace::TBTrace2)BTrace::OutFiltered) \
  4565 	BTrace::OutFiltered \
  4543 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4566 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4544 
  4567 
  4545 /**
  4568 /**
  4546 Output a trace record of the specified category.
  4569 Output a trace record of the specified category.
  4547 
  4570 
  4548 The trace record data is 8 bytes in size.
  4571 The trace record data is 8 bytes in size.
  4558 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4581 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4559 @publishedPartner
  4582 @publishedPartner
  4560 @released
  4583 @released
  4561 */
  4584 */
  4562 #define BTraceFiltered8(aCategory,aSubCategory,aUid,a1) \
  4585 #define BTraceFiltered8(aCategory,aSubCategory,aUid,a1) \
  4563 	((BTrace::TBTrace3)BTrace::OutFiltered) \
  4586 	BTrace::OutFiltered \
  4564 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4587 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4565 
  4588 
  4566 /**
  4589 /**
  4567 Output a trace record of the specified category.
  4590 Output a trace record of the specified category.
  4568 
  4591 
  4569 The trace record data is 12 bytes in size.
  4592 The trace record data is 12 bytes in size.
  4650 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4673 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4651 @publishedPartner
  4674 @publishedPartner
  4652 @released
  4675 @released
  4653 */
  4676 */
  4654 #define BTraceFilteredContext4(aCategory,aSubCategory,aUid) \
  4677 #define BTraceFilteredContext4(aCategory,aSubCategory,aUid) \
  4655 	((BTrace::TBTrace2)BTrace::OutFilteredX) \
  4678 	BTrace::OutFilteredX \
  4656 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4679 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4657 
  4680 
  4658 /**
  4681 /**
  4659 Output a trace record of the specified category which also includes a Context ID.
  4682 Output a trace record of the specified category which also includes a Context ID.
  4660 
  4683 
  4661 The trace record data is 8 bytes in size.
  4684 The trace record data is 8 bytes in size.
  4671 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4694 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4672 @publishedPartner
  4695 @publishedPartner
  4673 @released
  4696 @released
  4674 */
  4697 */
  4675 #define BTraceFilteredContext8(aCategory,aSubCategory,aUid,a1) \
  4698 #define BTraceFilteredContext8(aCategory,aSubCategory,aUid,a1) \
  4676 	((BTrace::TBTrace3)BTrace::OutFilteredX) \
  4699 	BTrace::OutFilteredX \
  4677 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4700 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4678 
  4701 
  4679 /**
  4702 /**
  4680 Output a trace record of the specified category which also includes a Context ID.
  4703 Output a trace record of the specified category which also includes a Context ID.
  4681 
  4704 
  4682 The trace record data is 12 bytes in size.
  4705 The trace record data is 12 bytes in size.
  4763 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4786 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4764 @publishedPartner
  4787 @publishedPartner
  4765 @released
  4788 @released
  4766 */
  4789 */
  4767 #define BTraceFilteredPc4(aCategory,aSubCategory,aUid)	\
  4790 #define BTraceFilteredPc4(aCategory,aSubCategory,aUid)	\
  4768 	((BTrace::TBTrace2)BTrace::OutFiltered) \
  4791 	BTrace::OutFiltered \
  4769 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4792 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4770 
  4793 
  4771 /**
  4794 /**
  4772 Output a trace record of the specified category which also includes a Program Counter value.
  4795 Output a trace record of the specified category which also includes a Program Counter value.
  4773 
  4796 
  4774 The trace record data is 8 bytes in size.
  4797 The trace record data is 8 bytes in size.
  4784 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4807 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4785 @publishedPartner
  4808 @publishedPartner
  4786 @released
  4809 @released
  4787 */
  4810 */
  4788 #define BTraceFilteredPc8(aCategory,aSubCategory,aUid,a1) \
  4811 #define BTraceFilteredPc8(aCategory,aSubCategory,aUid,a1) \
  4789 	((BTrace::TBTrace3)BTrace::OutFiltered) \
  4812 	BTrace::OutFiltered \
  4790 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4813 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4791 
  4814 
  4792 /**
  4815 /**
  4793 Output a trace record of the specified category which also includes a Program Counter value.
  4816 Output a trace record of the specified category which also includes a Program Counter value.
  4794 
  4817 
  4795 The trace record data is 12 bytes in size.
  4818 The trace record data is 12 bytes in size.
  4878 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4901 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4879 @publishedPartner
  4902 @publishedPartner
  4880 @released
  4903 @released
  4881 */
  4904 */
  4882 #define BTraceFilteredContextPc4(aCategory,aSubCategory,aUid)	\
  4905 #define BTraceFilteredContextPc4(aCategory,aSubCategory,aUid)	\
  4883 	((BTrace::TBTrace2)BTrace::OutFilteredX) \
  4906 	BTrace::OutFilteredX \
  4884 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4907 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4885 
  4908 
  4886 /**
  4909 /**
  4887 Output a trace record of the specified category which also includes
  4910 Output a trace record of the specified category which also includes
  4888 Context ID and Program Counter values.
  4911 Context ID and Program Counter values.
  4889 
  4912 
  4900 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4923 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4901 @publishedPartner
  4924 @publishedPartner
  4902 @released
  4925 @released
  4903 */
  4926 */
  4904 #define BTraceFilteredContextPc8(aCategory,aSubCategory,aUid,a1) \
  4927 #define BTraceFilteredContextPc8(aCategory,aSubCategory,aUid,a1) \
  4905 	((BTrace::TBTrace3)BTrace::OutFilteredX) \
  4928 	BTrace::OutFilteredX \
  4906 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4929 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4907 
  4930 
  4908 /**
  4931 /**
  4909 Output a trace record of the specified category which also includes
  4932 Output a trace record of the specified category which also includes
  4910 Context ID and Program Counter values.
  4933 Context ID and Program Counter values.
  4911 
  4934