equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\drivers\trace\btracec.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32std.h> |
|
19 #include <d32utrace.h> |
|
20 #include <e32svr.h> |
|
21 |
|
22 |
|
23 void Panic(TInt aPanicNum) |
|
24 { |
|
25 _LIT(KRUTracePanic,"RUTrace"); |
|
26 User::Panic(KRUTracePanic,aPanicNum); |
|
27 } |
|
28 |
|
29 EXPORT_C TInt RUTrace::Open() |
|
30 { |
|
31 //_LIT(KBTraceLddName,"utracex"); |
|
32 //TInt r = User::LoadLogicalDevice(KBTraceLddName); |
|
33 TInt r = User::LoadLogicalDevice(Name()); |
|
34 if(r!=KErrNone && r!=KErrAlreadyExists) |
|
35 return r; |
|
36 r = DoCreate( Name(), TVersion(), KNullUnit, NULL, NULL, EOwnerThread); |
|
37 return r; |
|
38 }; |
|
39 |
|
40 EXPORT_C TInt RUTrace::TestUtrace(TInt& aFailed) |
|
41 { |
|
42 return DoControl(ETestUTrace,(TAny*)aFailed,0); |
|
43 } |