logman and wpp tracing

I use tracelog to start a trace session just using a guid (without access to .pdb or .tmf)

tracelog -start session_name -p guid_file -f log.etl -flag 0xff -level 0xff

But tracelog is not a distributable component. I’d like my clients to use logman to do the same thing. Is it possible? What would be the syntax?

thanks,

m navab

Yes is possible with logman:

logman start session_name -p {guid} -o log.etl 0xff 255 -ets

logman stop session_name

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Wednesday, November 12, 2008 1:33 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] logman and wpp tracing

I use tracelog to start a trace session just using a guid (without access to .pdb or .tmf)

tracelog -start session_name -p guid_file -f log.etl -flag 0xff -level 0xff

But tracelog is not a distributable component. I’d like my clients to use logman to do the same thing. Is it possible? What would be the syntax?

thanks,

m navab


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Sorry the flag and level need to follow the provider as below:

logman start session_name -p {guid} 0xff 255 -o log.etl -ets

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Jose Sua
Sent: Wednesday, November 12, 2008 3:35 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] logman and wpp tracing

Yes is possible with logman:

logman start session_name -p {guid} -o log.etl 0xff 255 -ets

logman stop session_name

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Wednesday, November 12, 2008 1:33 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] logman and wpp tracing

I use tracelog to start a trace session just using a guid (without access to .pdb or .tmf)

tracelog -start session_name -p guid_file -f log.etl -flag 0xff -level 0xff

But tracelog is not a distributable component. I’d like my clients to use logman to do the same thing. Is it possible? What would be the syntax?

thanks,

m navab


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thnak you.

I issued the command. It worked, but with two issues: 1) Log files size didn’t not increase from 8k.
It really did not log. 2) I could not use the session name to stop it. Please see bewlow.

F:\trace>
F:\trace>logman start js -p {d58c126f-b309-11d1-969e-0000f875a5bc} 0xff 255 -o log.etl -ets

Name: js
Age Limit: 15
Buffer Size: 8
Buffers Written: 1
Events Lost: 0
Flush Timer: 0
Buffers Free: 2
Buffers Lost: 0
File Mode: Sequential
File Name: F:\trace\log.etl
Logger Id: 2
Logger Thread Id: 836
Maximum Buffers: 26
Maximum File Size: 0
Minimum Buffers: 4
Number of buffers: 4
Real Time Buffers Lost: 0

Providers:
{D58C126F-B309-11D1-969E-0000F875A5BC}

The command completed successfully.

F:\trace>logman stop js

Error:
Collection “js” does not exist.

All this commands require -ets option

Logman stop js -ets

Can you try that and see if the log file has the events?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Thursday, November 13, 2008 9:58 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] logman and wpp tracing

Thnak you.

I issued the command. It worked, but with two issues: 1) Log files size didn’t not increase from 8k.
It really did not log. 2) I could not use the session name to stop it. Please see bewlow.

F:\trace>
F:\trace>logman start js -p {d58c126f-b309-11d1-969e-0000f875a5bc} 0xff 255 -o log.etl -ets

Name: js
Age Limit: 15
Buffer Size: 8
Buffers Written: 1
Events Lost: 0
Flush Timer: 0
Buffers Free: 2
Buffers Lost: 0
File Mode: Sequential
File Name: F:\trace\log.etl
Logger Id: 2
Logger Thread Id: 836
Maximum Buffers: 26
Maximum File Size: 0
Minimum Buffers: 4
Number of buffers: 4
Real Time Buffers Lost: 0

Providers:
{D58C126F-B309-11D1-969E-0000F875A5BC}

The command completed successfully.

F:\trace>logman stop js

Error:
Collection “js” does not exist.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thank you very much.

That worked great.