| a6e5d032 | 02-Apr-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: rename trace_event's poller_id to owner_id
"poller_id" was sort of a very early and crude attempt at associating trace events with who generated them. The new "owner" concept is replacing tha
trace: rename trace_event's poller_id to owner_id
"poller_id" was sort of a very early and crude attempt at associating trace events with who generated them. The new "owner" concept is replacing that, so just rename the existing "poller_id" to "owner_id".
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: Icd61e39c5225030690ef0238cd0b3a90846fcc6b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22647 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
show more ...
|
| ae89daab | 30-Mar-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: add concept of "owner" to trace files
An "owner" is now represented by a textual string describing the owner of a trace event.
A trace file can have up to 16K outstanding owners at any given
trace: add concept of "owner" to trace files
An "owner" is now represented by a textual string describing the owner of a trace event.
A trace file can have up to 16K outstanding owners at any given time. We need this many to be able to track all of the various NVMe-oF qpairs, bdevs, NVMe driver qpairs, accel channels, etc. A library creating trace events can call spdk_trace_register_owner() with a description string to allocate a a 16-bit owner_id. This owner_id is then passed as a parameter to spdk_trace_record().
Libraries can change the description of a registered owner by calling spdk_trace_owner_set_description(). This can be useful for cases like NVMe-oF, where where a newly established qpair may only have a source IP/port, but later can be changed to also add the subsystem nqn once the CONNECT command arrives.
A library is responsible for calling spdk_trace_unregister_owner() once the associated object is destroyed (i.e. a qpair disconnects or a bdev is unregistered).
An owner lifetime is tracked by recording the tsc when the owner was registered. This allows the trace app to handle the case where an owner_id gets reused during the span of a trace file.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I79c9979a0769c32a85ee646c8237fe8329993c45 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22646 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 ...
|
| 00918d5c | 02-Apr-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: change trace_flags_init() to return int
Future patches will add possible error return values to this function, so prep now by changing this function to return int.
Signed-off-by: Jim Harris
trace: change trace_flags_init() to return int
Future patches will add possible error return values to this function, so prep now by changing this function to return int.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I139755d780a6ff67a52caf615a3c12ec6c0cf94a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22644 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 ...
|
| 6da17199 | 09-Feb-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: add size field to spdk_trace_file
This is more straightforward than using an extra entry in the lcore_history_offsets array to store the file size. This will also make more sense if/when we a
trace: add size field to spdk_trace_file
This is more straightforward than using an extra entry in the lcore_history_offsets array to store the file size. This will also make more sense if/when we add other types of variable sized data to the trace files in the future.
The bulk of the changes here are in the trace_record app. We now need to write out the file_size explicitly to the out_fd.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I3f22359b23ae5915146142b76e38924568782334 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21791 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
show more ...
|