diff options
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/profile-manual/usage.rst | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/documentation/profile-manual/usage.rst b/documentation/profile-manual/usage.rst index 703ac459a0..6f0b0418e7 100644 --- a/documentation/profile-manual/usage.rst +++ b/documentation/profile-manual/usage.rst | |||
@@ -2423,20 +2423,21 @@ tracer writes to, blktrace provides a way to trace without perturbing | |||
2423 | the traced device at all by providing native support for sending all | 2423 | the traced device at all by providing native support for sending all |
2424 | trace data over the network. | 2424 | trace data over the network. |
2425 | 2425 | ||
2426 | To have blktrace operate in this mode, start blktrace on the target | 2426 | To have blktrace operate in this mode, start blktrace in server mode on the |
2427 | system being traced with the -l option, along with the device to trace:: | 2427 | host system, which is going to store the captured data:: |
2428 | 2428 | ||
2429 | root@crownbay:~# blktrace -l /dev/sdc | 2429 | $ blktrace -l |
2430 | server: waiting for connections... | 2430 | server: waiting for connections... |
2431 | 2431 | ||
2432 | On the host system, use the -h option to connect to the target system, | 2432 | On the target system that is going to be traced, start blktrace in client |
2433 | also passing it the device to trace:: | 2433 | mode with the -h option to connect to the host system, also passing it the |
2434 | device to trace:: | ||
2434 | 2435 | ||
2435 | $ blktrace -d /dev/sdc -h 192.168.1.43 | 2436 | root@crownbay:~# blktrace -d /dev/sdc -h 192.168.1.43 |
2436 | blktrace: connecting to 192.168.1.43 | 2437 | blktrace: connecting to 192.168.1.43 |
2437 | blktrace: connected! | 2438 | blktrace: connected! |
2438 | 2439 | ||
2439 | On the target system, you should see this:: | 2440 | On the host system, you should see this:: |
2440 | 2441 | ||
2441 | server: connection from 192.168.1.43 | 2442 | server: connection from 192.168.1.43 |
2442 | 2443 | ||
@@ -2446,7 +2447,7 @@ In another shell, execute a workload you want to trace. :: | |||
2446 | Connecting to downloads.yoctoproject.org (140.211.169.59:80) | 2447 | Connecting to downloads.yoctoproject.org (140.211.169.59:80) |
2447 | linux-2.6.19.2.tar.b 100% \|*******************************\| 41727k 0:00:00 ETA | 2448 | linux-2.6.19.2.tar.b 100% \|*******************************\| 41727k 0:00:00 ETA |
2448 | 2449 | ||
2449 | When it's done, do a Ctrl-C on the host system to stop the | 2450 | When it's done, do a Ctrl-C on the target system to stop the |
2450 | trace:: | 2451 | trace:: |
2451 | 2452 | ||
2452 | ^C=== sdc === | 2453 | ^C=== sdc === |
@@ -2454,7 +2455,7 @@ trace:: | |||
2454 | CPU 1: 4109 events, 193 KiB data | 2455 | CPU 1: 4109 events, 193 KiB data |
2455 | Total: 11800 events (dropped 0), 554 KiB data | 2456 | Total: 11800 events (dropped 0), 554 KiB data |
2456 | 2457 | ||
2457 | On the target system, you should also see a trace summary for the trace | 2458 | On the host system, you should also see a trace summary for the trace |
2458 | just ended:: | 2459 | just ended:: |
2459 | 2460 | ||
2460 | server: end of run for 192.168.1.43:sdc | 2461 | server: end of run for 192.168.1.43:sdc |