| 1128edc1 | 02-Apr-2024 |
Jim Harris <jim.harris@samsung.com> |
app/trace: emit owner descriptions
Now that we have a real description for an event's owner, print those descriptions instead of the old owner_type prefix + poller_id.
Note that we need to take the
app/trace: emit owner descriptions
Now that we have a real description for an event's owner, print those descriptions instead of the old owner_type prefix + poller_id.
Note that we need to take the event's tsc into account, if it is older than when the associated owner was registered we should not print the description because it is for an owner that was unregistered after the event was generated.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I9257306b5fe9fd7273abcb9b14e4fc136c417742 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22648 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
show more ...
|
| 753e344f | 17-Apr-2024 |
Marcin Spiewak <marcin.spiewak@intel.com> |
app/trace: fix for trace_print()
This patch fixes issue introduced in patch 22642.
If lcore is defined in trace_print() and initialized with SPDK_TRACE_MAX_LCORE, the 'if' statement inside 'for' lo
app/trace: fix for trace_print()
This patch fixes issue introduced in patch 22642.
If lcore is defined in trace_print() and initialized with SPDK_TRACE_MAX_LCORE, the 'if' statement inside 'for' loop is always true and trace size is printed for every lcore. This is not intended use of this function - if the user passes the lcore number as a command line parameter, only this lcore shall be printed. We need to propagate lcore number from main(), where it is parsed and assigned, to the trace_print().
Change-Id: I5c84da7da7df39c88ac52ba4ffaea8a518de77c6 Signed-off-by: Marcin Spiewak <marcin.spiewak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22829 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
show more ...
|
| d5901de3 | 29-Feb-2024 |
Jim Harris <jim.harris@samsung.com> |
spdk_trace: default on Linux to newest trace file in /dev/shm
It is kind of a pain to have to *always* have to specify the filename or app parameters to spdk_trace, especially when you have the app
spdk_trace: default on Linux to newest trace file in /dev/shm
It is kind of a pain to have to *always* have to specify the filename or app parameters to spdk_trace, especially when you have the app currently running or the app just exited.
So use ntfw() to walk the files in /dev/shm when -f and -s are not specified, and use the newest file (assuming one is found).
A few caveats: 1) This only works on Linux, mainly because FreeBSD does not have a /dev/shm mount for shm files. 2) Search /dev/shm is not foolproof, since we don't know for sure whether a file there is an SPDK trace file. But looking for the "_trace." substring should be enough. It should guard against trying to use other non-trace files.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: If130e6f5918a228b6f9d4576e16d37e05bfc4995 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22104 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <ben@nvidia.com>
show more ...
|
| 67eb86e3 | 29-Feb-2024 |
Jim Harris <jim.harris@samsung.com> |
trace_parser: add flag for arguments used for related objects
Some tracepoints have an argument that is a context pointer for some other object type. The trace app already decode this information, s
trace_parser: add flag for arguments used for related objects
Some tracepoints have an argument that is a context pointer for some other object type. The trace app already decode this information, showing the ID for that related object.
Since the ID is already shown, the context pointer itself isn't useful, so add a flag to note those arguments, so we can omit printing the context pointer.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I3f6521ff5594cdc4c635c23a612c8f0d2f3717dd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22102 Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <ben@nvidia.com>
show more ...
|
| ed54725a | 27-Sep-2021 |
Krzysztof Karas <krzysztof.karas@intel.com> |
app/trace: include relation information while printing json
Add relation information to printed json traces to later read them in trace.py.
Change-Id: I090b7ffa2b85da00b6ad57825c7208dd5cfc396a Sign
app/trace: include relation information while printing json
Add relation information to printed json traces to later read them in trace.py.
Change-Id: I090b7ffa2b85da00b6ad57825c7208dd5cfc396a Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9637 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@gmail.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
show more ...
|
| 99531396 | 25-May-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
app/trace: added an option to print traces as JSON
Added an option, `-j`, which will cause the spdk_trace to print traces in JSON format. The JSON output's structure is similar to the binary SPDK t
app/trace: added an option to print traces as JSON
Added an option, `-j`, which will cause the spdk_trace to print traces in JSON format. The JSON output's structure is similar to the binary SPDK trace format, i.e. tracepoint definitions are printed at the beginning, followed by trace entries. This allows us to reduce the size of the output a bit, as we don't need to print all tracepoint properties for each entry.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I22fd4bee72c0d214a3444ce62d0651fabd489f5a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8104 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
| 63f14f93 | 20-May-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
app/trace: remove the -q (quiet) option
The application doesn't do anything useful when started with this option, so there's no point in keeping it.
Signed-off-by: Konrad Sztyber <konrad.sztyber@in
app/trace: remove the -q (quiet) option
The application doesn't do anything useful when started with this option, so there's no point in keeping it.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I2fca31fc7ccca11fc44a7f9a7a7b83d7634048d7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8103 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
show more ...
|