kernel/eka/include/e32btrace.h
changeset 189 a5496987b1da
parent 121 661475905584
child 199 189ece41fa29
equal deleted inserted replaced
177:a232af6b0b1f 189:a5496987b1da
  3911 	static void Init0();
  3911 	static void Init0();
  3912 
  3912 
  3913 	/**
  3913 	/**
  3914 	@internalComponent
  3914 	@internalComponent
  3915 	*/
  3915 	*/
  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
  3916 	struct SExecExtension
  3932 		{
  3917 		{
  3933 		TUint32 iA2;
  3918 		TUint32 iA2;
  3934 		TUint32 iA3;
  3919 		TUint32 iA3;
  3935 		TUint32 iPc;
  3920 		TUint32 iPc;
  4047 @return True if trace is enabled for aCategory, false otherwise.
  4032 @return True if trace is enabled for aCategory, false otherwise.
  4048 @publishedPartner
  4033 @publishedPartner
  4049 @released
  4034 @released
  4050 */
  4035 */
  4051 #define BTrace0(aCategory,aSubCategory) \
  4036 #define BTrace0(aCategory,aSubCategory) \
  4052 	((BTrace::TBTrace1)BTrace::Out) \
  4037 	BTrace::Out \
  4053 		(BTRACE_HEADER(4,(aCategory),(aSubCategory)))
  4038 		(BTRACE_HEADER(4,(aCategory),(aSubCategory)),0,0,0)
  4054 
  4039 
  4055 /**
  4040 /**
  4056 Output a trace record of the specified category.
  4041 Output a trace record of the specified category.
  4057 
  4042 
  4058 The trace record data is 4 bytes in size.
  4043 The trace record data is 4 bytes in size.
  4065 @return True if trace is enabled for aCategory, false otherwise.
  4050 @return True if trace is enabled for aCategory, false otherwise.
  4066 @publishedPartner
  4051 @publishedPartner
  4067 @released
  4052 @released
  4068 */
  4053 */
  4069 #define BTrace4(aCategory,aSubCategory,a1) \
  4054 #define BTrace4(aCategory,aSubCategory,a1) \
  4070 	((BTrace::TBTrace2)BTrace::Out) \
  4055 	BTrace::Out \
  4071 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4056 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4072 
  4057 
  4073 /**
  4058 /**
  4074 Output a trace record of the specified category.
  4059 Output a trace record of the specified category.
  4075 
  4060 
  4076 The trace record data is 8 bytes in size.
  4061 The trace record data is 8 bytes in size.
  4084 @return True if trace is enabled for aCategory, false otherwise.
  4069 @return True if trace is enabled for aCategory, false otherwise.
  4085 @publishedPartner
  4070 @publishedPartner
  4086 @released
  4071 @released
  4087 */
  4072 */
  4088 #define BTrace8(aCategory,aSubCategory,a1,a2) \
  4073 #define BTrace8(aCategory,aSubCategory,a1,a2) \
  4089 	((BTrace::TBTrace3)BTrace::Out) \
  4074 	BTrace::Out \
  4090 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4075 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4091 
  4076 
  4092 /**
  4077 /**
  4093 Output a trace record of the specified category.
  4078 Output a trace record of the specified category.
  4094 
  4079 
  4095 The trace record data is 12 bytes in size.
  4080 The trace record data is 12 bytes in size.
  4167 @return True if trace is enabled for aCategory, false otherwise.
  4152 @return True if trace is enabled for aCategory, false otherwise.
  4168 @publishedPartner
  4153 @publishedPartner
  4169 @released
  4154 @released
  4170 */
  4155 */
  4171 #define BTraceContext0(aCategory,aSubCategory) \
  4156 #define BTraceContext0(aCategory,aSubCategory) \
  4172 	((BTrace::TBTrace1)BTrace::OutX) \
  4157 	BTrace::OutX \
  4173 		(BTRACE_HEADER_C(4,(aCategory),(aSubCategory)))
  4158 		(BTRACE_HEADER_C(4,(aCategory),(aSubCategory)),0,0,0)
  4174 
  4159 
  4175 /**
  4160 /**
  4176 Output a trace record of the specified category which also includes a Context ID.
  4161 Output a trace record of the specified category which also includes a Context ID.
  4177 
  4162 
  4178 The trace record data is 4 bytes in size.
  4163 The trace record data is 4 bytes in size.
  4185 @return True if trace is enabled for aCategory, false otherwise.
  4170 @return True if trace is enabled for aCategory, false otherwise.
  4186 @publishedPartner
  4171 @publishedPartner
  4187 @released
  4172 @released
  4188 */
  4173 */
  4189 #define BTraceContext4(aCategory,aSubCategory,a1) \
  4174 #define BTraceContext4(aCategory,aSubCategory,a1) \
  4190 	((BTrace::TBTrace2)BTrace::OutX) \
  4175 	BTrace::OutX \
  4191 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4176 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4192 
  4177 
  4193 /**
  4178 /**
  4194 Output a trace record of the specified category which also includes a Context ID.
  4179 Output a trace record of the specified category which also includes a Context ID.
  4195 
  4180 
  4196 The trace record data is 8 bytes in size.
  4181 The trace record data is 8 bytes in size.
  4204 @return True if trace is enabled for aCategory, false otherwise.
  4189 @return True if trace is enabled for aCategory, false otherwise.
  4205 @publishedPartner
  4190 @publishedPartner
  4206 @released
  4191 @released
  4207 */
  4192 */
  4208 #define BTraceContext8(aCategory,aSubCategory,a1,a2) \
  4193 #define BTraceContext8(aCategory,aSubCategory,a1,a2) \
  4209 	((BTrace::TBTrace3)BTrace::OutX) \
  4194 	BTrace::OutX \
  4210 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4195 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4211 
  4196 
  4212 /**
  4197 /**
  4213 Output a trace record of the specified category which also includes a Context ID.
  4198 Output a trace record of the specified category which also includes a Context ID.
  4214 
  4199 
  4215 The trace record data is 12 bytes in size.
  4200 The trace record data is 12 bytes in size.
  4287 @return True if trace is enabled for aCategory, false otherwise.
  4272 @return True if trace is enabled for aCategory, false otherwise.
  4288 @publishedPartner
  4273 @publishedPartner
  4289 @released
  4274 @released
  4290 */
  4275 */
  4291 #define BTracePc0(aCategory,aSubCategory) \
  4276 #define BTracePc0(aCategory,aSubCategory) \
  4292 	((BTrace::TBTrace1)BTrace::Out) \
  4277 	BTrace::Out \
  4293 		(BTRACE_HEADER_P(4,(aCategory),(aSubCategory)))
  4278 		(BTRACE_HEADER_P(4,(aCategory),(aSubCategory)),0,0,0)
  4294 
  4279 
  4295 /**
  4280 /**
  4296 Output a trace record of the specified category which also includes a Program Counter value.
  4281 Output a trace record of the specified category which also includes a Program Counter value.
  4297 
  4282 
  4298 The trace record data is 4 bytes in size.
  4283 The trace record data is 4 bytes in size.
  4305 @return True if trace is enabled for aCategory, false otherwise.
  4290 @return True if trace is enabled for aCategory, false otherwise.
  4306 @publishedPartner
  4291 @publishedPartner
  4307 @released
  4292 @released
  4308 */
  4293 */
  4309 #define BTracePc4(aCategory,aSubCategory,a1)	\
  4294 #define BTracePc4(aCategory,aSubCategory,a1)	\
  4310 	((BTrace::TBTrace2)BTrace::Out) \
  4295 	BTrace::Out \
  4311 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4296 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4312 
  4297 
  4313 /**
  4298 /**
  4314 Output a trace record of the specified category which also includes a Program Counter value.
  4299 Output a trace record of the specified category which also includes a Program Counter value.
  4315 
  4300 
  4316 The trace record data is 8 bytes in size.
  4301 The trace record data is 8 bytes in size.
  4324 @return True if trace is enabled for aCategory, false otherwise.
  4309 @return True if trace is enabled for aCategory, false otherwise.
  4325 @publishedPartner
  4310 @publishedPartner
  4326 @released
  4311 @released
  4327 */
  4312 */
  4328 #define BTracePc8(aCategory,aSubCategory,a1,a2) \
  4313 #define BTracePc8(aCategory,aSubCategory,a1,a2) \
  4329 	((BTrace::TBTrace3)BTrace::Out) \
  4314 	BTrace::Out \
  4330 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4315 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4331 
  4316 
  4332 /**
  4317 /**
  4333 Output a trace record of the specified category which also includes a Program Counter value.
  4318 Output a trace record of the specified category which also includes a Program Counter value.
  4334 
  4319 
  4335 The trace record data is 12 bytes in size.
  4320 The trace record data is 12 bytes in size.
  4409 @return True if trace is enabled for aCategory, false otherwise.
  4394 @return True if trace is enabled for aCategory, false otherwise.
  4410 @publishedPartner
  4395 @publishedPartner
  4411 @released
  4396 @released
  4412 */
  4397 */
  4413 #define BTraceContextPc0(aCategory,aSubCategory)	\
  4398 #define BTraceContextPc0(aCategory,aSubCategory)	\
  4414 	((BTrace::TBTrace1)BTrace::OutX) \
  4399 	BTrace::OutX \
  4415 		(BTRACE_HEADER_CP(4,(aCategory),(aSubCategory)))
  4400 		(BTRACE_HEADER_CP(4,(aCategory),(aSubCategory)),0,0,0)
  4416 
  4401 
  4417 /**
  4402 /**
  4418 Output a trace record of the specified category which also includes
  4403 Output a trace record of the specified category which also includes
  4419 Context ID and Program Counter values.
  4404 Context ID and Program Counter values.
  4420 
  4405 
  4428 @return True if trace is enabled for aCategory, false otherwise.
  4413 @return True if trace is enabled for aCategory, false otherwise.
  4429 @publishedPartner
  4414 @publishedPartner
  4430 @released
  4415 @released
  4431 */
  4416 */
  4432 #define BTraceContextPc4(aCategory,aSubCategory,a1) \
  4417 #define BTraceContextPc4(aCategory,aSubCategory,a1) \
  4433 	((BTrace::TBTrace2)BTrace::OutX) \
  4418 	BTrace::OutX \
  4434 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(a1))
  4419 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(a1),0,0)
  4435 
  4420 
  4436 /**
  4421 /**
  4437 Output a trace record of the specified category which also includes
  4422 Output a trace record of the specified category which also includes
  4438 Context ID and Program Counter values.
  4423 Context ID and Program Counter values.
  4439 
  4424 
  4448 @return True if trace is enabled for aCategory, false otherwise.
  4433 @return True if trace is enabled for aCategory, false otherwise.
  4449 @publishedPartner
  4434 @publishedPartner
  4450 @released
  4435 @released
  4451 */
  4436 */
  4452 #define BTraceContextPc8(aCategory,aSubCategory,a1,a2) \
  4437 #define BTraceContextPc8(aCategory,aSubCategory,a1,a2) \
  4453 	((BTrace::TBTrace3)BTrace::OutX) \
  4438 	BTrace::OutX \
  4454 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2))
  4439 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(a1),(TUint32)(a2),0)
  4455 
  4440 
  4456 /**
  4441 /**
  4457 Output a trace record of the specified category which also includes
  4442 Output a trace record of the specified category which also includes
  4458 Context ID and Program Counter values.
  4443 Context ID and Program Counter values.
  4459 
  4444 
  4537 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4522 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4538 @publishedPartner
  4523 @publishedPartner
  4539 @released
  4524 @released
  4540 */
  4525 */
  4541 #define BTraceFiltered4(aCategory,aSubCategory,aUid) \
  4526 #define BTraceFiltered4(aCategory,aSubCategory,aUid) \
  4542 	((BTrace::TBTrace2)BTrace::OutFiltered) \
  4527 	BTrace::OutFiltered \
  4543 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4528 		(BTRACE_HEADER(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4544 
  4529 
  4545 /**
  4530 /**
  4546 Output a trace record of the specified category.
  4531 Output a trace record of the specified category.
  4547 
  4532 
  4548 The trace record data is 8 bytes in size.
  4533 The trace record data is 8 bytes in size.
  4558 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4543 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4559 @publishedPartner
  4544 @publishedPartner
  4560 @released
  4545 @released
  4561 */
  4546 */
  4562 #define BTraceFiltered8(aCategory,aSubCategory,aUid,a1) \
  4547 #define BTraceFiltered8(aCategory,aSubCategory,aUid,a1) \
  4563 	((BTrace::TBTrace3)BTrace::OutFiltered) \
  4548 	BTrace::OutFiltered \
  4564 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4549 		(BTRACE_HEADER(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4565 
  4550 
  4566 /**
  4551 /**
  4567 Output a trace record of the specified category.
  4552 Output a trace record of the specified category.
  4568 
  4553 
  4569 The trace record data is 12 bytes in size.
  4554 The trace record data is 12 bytes in size.
  4650 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4635 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4651 @publishedPartner
  4636 @publishedPartner
  4652 @released
  4637 @released
  4653 */
  4638 */
  4654 #define BTraceFilteredContext4(aCategory,aSubCategory,aUid) \
  4639 #define BTraceFilteredContext4(aCategory,aSubCategory,aUid) \
  4655 	((BTrace::TBTrace2)BTrace::OutFilteredX) \
  4640 	BTrace::OutFilteredX \
  4656 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4641 		(BTRACE_HEADER_C(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4657 
  4642 
  4658 /**
  4643 /**
  4659 Output a trace record of the specified category which also includes a Context ID.
  4644 Output a trace record of the specified category which also includes a Context ID.
  4660 
  4645 
  4661 The trace record data is 8 bytes in size.
  4646 The trace record data is 8 bytes in size.
  4671 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4656 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4672 @publishedPartner
  4657 @publishedPartner
  4673 @released
  4658 @released
  4674 */
  4659 */
  4675 #define BTraceFilteredContext8(aCategory,aSubCategory,aUid,a1) \
  4660 #define BTraceFilteredContext8(aCategory,aSubCategory,aUid,a1) \
  4676 	((BTrace::TBTrace3)BTrace::OutFilteredX) \
  4661 	BTrace::OutFilteredX \
  4677 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4662 		(BTRACE_HEADER_C(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4678 
  4663 
  4679 /**
  4664 /**
  4680 Output a trace record of the specified category which also includes a Context ID.
  4665 Output a trace record of the specified category which also includes a Context ID.
  4681 
  4666 
  4682 The trace record data is 12 bytes in size.
  4667 The trace record data is 12 bytes in size.
  4763 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4748 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4764 @publishedPartner
  4749 @publishedPartner
  4765 @released
  4750 @released
  4766 */
  4751 */
  4767 #define BTraceFilteredPc4(aCategory,aSubCategory,aUid)	\
  4752 #define BTraceFilteredPc4(aCategory,aSubCategory,aUid)	\
  4768 	((BTrace::TBTrace2)BTrace::OutFiltered) \
  4753 	BTrace::OutFiltered \
  4769 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4754 		(BTRACE_HEADER_P(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4770 
  4755 
  4771 /**
  4756 /**
  4772 Output a trace record of the specified category which also includes a Program Counter value.
  4757 Output a trace record of the specified category which also includes a Program Counter value.
  4773 
  4758 
  4774 The trace record data is 8 bytes in size.
  4759 The trace record data is 8 bytes in size.
  4784 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4769 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4785 @publishedPartner
  4770 @publishedPartner
  4786 @released
  4771 @released
  4787 */
  4772 */
  4788 #define BTraceFilteredPc8(aCategory,aSubCategory,aUid,a1) \
  4773 #define BTraceFilteredPc8(aCategory,aSubCategory,aUid,a1) \
  4789 	((BTrace::TBTrace3)BTrace::OutFiltered) \
  4774 	BTrace::OutFiltered \
  4790 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4775 		(BTRACE_HEADER_P(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4791 
  4776 
  4792 /**
  4777 /**
  4793 Output a trace record of the specified category which also includes a Program Counter value.
  4778 Output a trace record of the specified category which also includes a Program Counter value.
  4794 
  4779 
  4795 The trace record data is 12 bytes in size.
  4780 The trace record data is 12 bytes in size.
  4878 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4863 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4879 @publishedPartner
  4864 @publishedPartner
  4880 @released
  4865 @released
  4881 */
  4866 */
  4882 #define BTraceFilteredContextPc4(aCategory,aSubCategory,aUid)	\
  4867 #define BTraceFilteredContextPc4(aCategory,aSubCategory,aUid)	\
  4883 	((BTrace::TBTrace2)BTrace::OutFilteredX) \
  4868 	BTrace::OutFilteredX \
  4884 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(aUid))
  4869 		(BTRACE_HEADER_CP(8,(aCategory),(aSubCategory)),(TUint32)(aUid),0,0)
  4885 
  4870 
  4886 /**
  4871 /**
  4887 Output a trace record of the specified category which also includes
  4872 Output a trace record of the specified category which also includes
  4888 Context ID and Program Counter values.
  4873 Context ID and Program Counter values.
  4889 
  4874 
  4900 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4885 @return True if trace is enabled for aCategory and aUid, false otherwise.
  4901 @publishedPartner
  4886 @publishedPartner
  4902 @released
  4887 @released
  4903 */
  4888 */
  4904 #define BTraceFilteredContextPc8(aCategory,aSubCategory,aUid,a1) \
  4889 #define BTraceFilteredContextPc8(aCategory,aSubCategory,aUid,a1) \
  4905 	((BTrace::TBTrace3)BTrace::OutFilteredX) \
  4890 	BTrace::OutFilteredX \
  4906 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1))
  4891 		(BTRACE_HEADER_CP(12,(aCategory),(aSubCategory)),(TUint32)(aUid),(TUint32)(a1),0)
  4907 
  4892 
  4908 /**
  4893 /**
  4909 Output a trace record of the specified category which also includes
  4894 Output a trace record of the specified category which also includes
  4910 Context ID and Program Counter values.
  4895 Context ID and Program Counter values.
  4911 
  4896