| #
87ef750d |
| 11-Jun-2024 |
Jacek Kalwas <jacek.kalwas@intel.com> |
trace: fix trace id assertion
Trace id 0 is valid. Likely issue was not hit as for some reason trace group id 0 is/was not used so far (group id determines base for trace id, see SPDK_TPOINT_ID).
C
trace: fix trace id assertion
Trace id 0 is valid. Likely issue was not hit as for some reason trace group id 0 is/was not used so far (group id determines base for trace id, see SPDK_TPOINT_ID).
Change-Id: Id014288a109206b47a729484bea73e853857c8b2 Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23645 Reviewed-by: Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
show more ...
|
|
Revision tags: v24.05, v24.09-pre, v24.05-rc1 |
|
| #
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 ...
|
| #
674b4c1a |
| 19-Apr-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: add trace_flags_fini()
This will be needed in an upcoming patch.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I8c38d00219e7ba52ddebc2746087b882fd6809bf Reviewed-on: https://
trace: add trace_flags_fini()
This will be needed in an upcoming patch.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I8c38d00219e7ba52ddebc2746087b882fd6809bf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22876 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| #
26d44a12 |
| 29-Mar-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: rename owner to owner_type
We will be adding the real concept of an "owner" in upcoming patches. So change the existing "owner" to "owner_type" which more accurate reflects its meaning. For e
trace: rename owner to owner_type
We will be adding the real concept of an "owner" in upcoming patches. So change the existing "owner" to "owner_type" which more accurate reflects its meaning. For example, an "owner_type" can be OWNER_BDEV, but an actual "owner" would be some specific bdev identified by its name.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: Ieb25eb5a574a88b3812291f2345796e5bb66a54f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22645 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@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 ...
|
| #
dc38e848 |
| 30-Mar-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: make spdk_trace_flags_init() a private function
This does not need to be in public API. So move it internally and rename it to trace_flags_init().
Signed-off-by: Jim Harris <jim.harris@samsu
trace: make spdk_trace_flags_init() a private function
This does not need to be in public API. So move it internally and rename it to trace_flags_init().
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I871eace8ba3a028d6d61d9f3b155ae8651a32b66 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22643 Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| #
2d65fd75 |
| 22-Feb-2024 |
Krzysztof Karas <krzysztof.karas@intel.com> |
lib/event: shorten opts descriptions' lines
Currently we display some of our app opts descriptions without any length limit. This means that these lines will wrap only when hitting the horizontal te
lib/event: shorten opts descriptions' lines
Currently we display some of our app opts descriptions without any length limit. This means that these lines will wrap only when hitting the horizontal terminal size. To improve readability and overall visual experience, make sure the lines do not exceed 100 characters.
Change-Id: If002cba7c4ef4178f11f2bb0e37269c5626852c0 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21999 Reviewed-by: Jim Harris <jim.harris@samsung.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot
show more ...
|
| #
23dbcec5 |
| 09-Feb-2024 |
Jim Harris <jim.harris@samsung.com> |
trace: merge spdk_trace_flags into spdk_trace_file
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I8a070f986825de2470d5873eaeed3849d36bf1af Reviewed-on: https://review.spdk.io/gerrit/
trace: merge spdk_trace_flags into spdk_trace_file
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I8a070f986825de2470d5873eaeed3849d36bf1af Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21790 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
show more ...
|
|
Revision tags: LTS, v24.01, v24.05-pre, v24.01-rc1, v23.09, v24.01-pre, v23.09-rc1, v23.05, v23.09-pre, v23.01.1, v23.01, v23.05-pre, v23.01-rc1, v22.01.2 |
|
| #
a6dbe372 |
| 01-Nov-2022 |
paul luse <paul.e.luse@intel.com> |
update Intel copyright notices
per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices.
git log --follow -C90% --format=%ad --date defa
update Intel copyright notices
per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices.
git log --follow -C90% --format=%ad --date default <file> | tail -1
and then pull just the 4 digit year from the result.
Intel copyrights were not added to files where Intel either had no contribution ot the contribution lacked substance (ie license header updates, formatting changes, etc). Contribution date used "--follow -C95%" to get the most accurate date.
Note that several files in this patch didn't end the license/(c) block with a blank comment line so these were added as the vast majority of files do have this last blank line. Simply there for consistency.
Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: Id5b7ce4f658fe87132f14139ead58d6e285c04d4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15192 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot
show more ...
|
|
Revision tags: v22.09, v23.01-pre, v22.09-rc1 |
|
| #
19c1d632 |
| 23-Sep-2022 |
Krzysztof Karas <krzysztof.karas@intel.com> |
trace: update trace help inside SPDK target
Delete bit masks from trace help (found inside build/bin/spdk_tgt -h help text), as they do not provide useful information, are much harder to remember an
trace: update trace help inside SPDK target
Delete bit masks from trace help (found inside build/bin/spdk_tgt -h help text), as they do not provide useful information, are much harder to remember and use, and migh leave user confused. Since we provide trace group names anyway, bit masks are excessive.
Change --tpoint-group-mask parameter name to --tpoint-group, because we do not provide bit masks anymore.
Drop "default" tpoint group mask from help text, since it does not enable any tracepoints and may confuse the user.
Change-Id: I2ca780883dfa7822e76523e9ba1fc65a7bfe5a99 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14656 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: Ben Walker <benjamin.walker@intel.com>
show more ...
|
| #
cdb0726b |
| 11-Aug-2022 |
Jim Harris <james.r.harris@intel.com> |
trace, trace_parser: support 4-byte INT/PTR arguments
This allows us to pack more arguments into the same amount of shared memory, for cases where those arguments don't need a full 8 bytes.
1- and
trace, trace_parser: support 4-byte INT/PTR arguments
This allows us to pack more arguments into the same amount of shared memory, for cases where those arguments don't need a full 8 bytes.
1- and 2-byte sizes not supported for now, variadic args do automatic promotion of types smaller than int, so support for those may need more work.
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Iec56cfa851b408a77d7995126d2111b0bf3d7f95 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13999 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
| #
488570eb |
| 03-Jun-2022 |
Jim Harris <james.r.harris@intel.com> |
Replace most BSD 3-clause license text with SPDX identifier.
Many open source projects have moved to using SPDX identifiers to specify license information, reducing the amount of boilerplate code in
Replace most BSD 3-clause license text with SPDX identifier.
Many open source projects have moved to using SPDX identifiers to specify license information, reducing the amount of boilerplate code in every source file. This patch replaces the bulk of SPDK .c, .cpp and Makefiles with the BSD-3-Clause identifier.
Almost all of these files share the exact same license text, and this patch only modifies the files that contain the most common license text. There can be slight variations because the third clause contains company names - most say "Intel Corporation", but there are instances for Nvidia, Samsung, Eideticom and even "the copyright holder".
Used a bash script to automate replacement of the license text with SPDX identifier which is checked into scripts/spdx.sh.
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Iaa88ab5e92ea471691dc298cfe41ebfb5d169780 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12904 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: <qun.wan@intel.com>
show more ...
|
|
Revision tags: v22.05, v22.09-pre, v22.05-rc1, v22.01.1, v22.01, v22.01-rc1 |
|
| #
e45f78b8 |
| 17-Dec-2021 |
Krzysztof Karas <krzysztof.karas@intel.com> |
trace_flags.c: modify errorlog text for duplicate tgroups
Add information which tgroup_ids/_names are duplicated - currently we only show the second argument of comparison.
Change-Id: Id3c61fc2d86b
trace_flags.c: modify errorlog text for duplicate tgroups
Add information which tgroup_ids/_names are duplicated - currently we only show the second argument of comparison.
Change-Id: Id3c61fc2d86b97e5513d7f5af9d0c5f66a358c5e Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10738 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
show more ...
|
| #
aa1ec373 |
| 22-Dec-2021 |
Krzysztof Karas <krzysztof.karas@intel.com> |
trace: make trace_create_tpoint_group_mask() external
Make trace_create_tpoint_group_mask() an external function. This is going to be used in following patch.
Change-Id: I06cd1652bb30abddd49536bc76
trace: make trace_create_tpoint_group_mask() external
Make trace_create_tpoint_group_mask() an external function. This is going to be used in following patch.
Change-Id: I06cd1652bb30abddd49536bc76ec134a01121537 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10830 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
| #
86167363 |
| 01-Dec-2021 |
Krzysztof Karas <krzysztof.karas@intel.com> |
trace: allow specifying a subset of a group's tpoints
This patch aims to introduce a change in enabling tracepoints inside SPDK. Currently every hit tracepoint will be stored inside an internal buff
trace: allow specifying a subset of a group's tpoints
This patch aims to introduce a change in enabling tracepoints inside SPDK. Currently every hit tracepoint will be stored inside an internal buffer, what is inconvenient when looking for certain information (eg. starting IO to record some tracepoints, stopping the IO and having the tracepoint buffer flooded with irrelevant information before copying the contents connected with IO operations).
The tpoint mask option (-e) has been extended with ':' character. User may now enter tpoint mask for individual trace points inside chosen tpoint group. Example: "-e 0x20:3f", where "0x20" stands for tpoint group, ':' is a separator and "3f" is the tpoint mask.
Change-Id: I2a700aa5a75a6abb409376e8f5c44d5501629877 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10431 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
show more ...
|
|
Revision tags: v21.10, v21.10-rc1 |
|
| #
70c17160 |
| 19-Oct-2021 |
Krzysztof Karas <krzysztof.karas@intel.com> |
trace: enable adding relations between traces
Currently we do not have any way to connect traces from different modules in SPDK. This change modifies our trace library and app/trace to handle adding
trace: enable adding relations between traces
Currently we do not have any way to connect traces from different modules in SPDK. This change modifies our trace library and app/trace to handle adding relations between trace points and a trace object.
Additionally this patch adds classes and fields to structs inside trace.py to prepare it for future patches implementing printing relation information.
Change-Id: Ia09d01244d923957d589fd37e6d4c98f9f7bbd07 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9620 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 ...
|
|
Revision tags: v21.07, v21.07-rc1 |
|
| #
6cc31696 |
| 16-Jun-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
lib/trace: chain entries to extend their buffer size
This patch adds the ability to chain multiple trace entries together to extend the size of the argument buffer. This means that a tracepoint is
lib/trace: chain entries to extend their buffer size
This patch adds the ability to chain multiple trace entries together to extend the size of the argument buffer. This means that a tracepoint is no longer limited to the size of a single entry, so it can have any number of arguments, and their size is also not constrained to a single entry.
Some limitations are still there: a tracepoint can have up to 5 arguments and strings are limited to 255 bytes. These constraints stem from the definitions of tracepoint structures, which could be easily modified to extend the limits if needed.
To record a tracepoint requiring larger buffer, aside from reserving `spdk_trace_entry` structure, a series of `spdk_trace_entry_buffer` structures are allocated too. Each of them acts as a buffer for the arguments. To allow trace tools to treat the buffer structures similarly to regular entries, they also have the `tpoint_id` and `tsc` fields. The id is always assigned to `SPDK_TRACE_MAX_TPOINT_ID` to make sure that a buffer is never mistaken for an entry, while the value of `tsc` is always shared with the initial entry. This also provides a way for the trace tools to verify if an entry is part of a chained buffer.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I51ceea6b6e57df95d4b8bd797f04edbc4936c180 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8405 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
show more ...
|
| #
7ca41133 |
| 18-May-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
app/trace: print tpoint arguments at the end of a line
Now that each tracepoint can have more than one argument, we cannot pad the missing ones, as it would take too much space. Therefore, we put t
app/trace: print tpoint arguments at the end of a line
Now that each tracepoint can have more than one argument, we cannot pad the missing ones, as it would take too much space. Therefore, we put them at the end of a line and simply skip the missing ones.
Additionally, since empty arguments are no longer padded, this patch stops recording arguments with names consisting of an empty string (containing just '\0').
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I5199a3219a31d6afd3178324a4f48563b84e6149 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7958 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 ...
|
| #
3e158bd5 |
| 17-May-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
lib/trace: record string arguments as (const char *)
Now that `spdk_trace_record` receives variadic arguments, we no longer have to pass strings as uint64_t, but can pass them directly as pointers.
lib/trace: record string arguments as (const char *)
Now that `spdk_trace_record` receives variadic arguments, we no longer have to pass strings as uint64_t, but can pass them directly as pointers. That also means that the recorded strings can be longer than 8B (up to 40B).
This patch changes the blobfs code to pass the filenames as strings and gets rid of the code that converted them to uint64_t.
Additionally, the maximum length of string arguments printed by `app/trace/trace` has been extended to 16 and they're also padded to 16 characters, to better align with other argument types.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Ibe94452bf1b27eba2b15ca8608d0c3b55c2db360 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7957 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
show more ...
|
| #
f301d156 |
| 17-May-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
lib/trace: variable number of tracepoint arguments
This patch allows tracepoint to record a variable number of arugments. An additional function has been added, `spdk_trace_register_description_ext(
lib/trace: variable number of tracepoint arguments
This patch allows tracepoint to record a variable number of arugments. An additional function has been added, `spdk_trace_register_description_ext()`, which allows the user to register definitions for tracepoints specifying all the arugments that they accept. Users can also call `spdk_trace_register_description()` to register tpoints with a single argument (or none).
Currently, all of the tracepoint arguments need to be passed as uint64_t.
The trace record functions use variable arguments and rely on tracepoint description to know the order and the format of the arguments passed. That means that the user needs to take care that they're always in sync.
Moreover, this patch extends the tracepoint entry size from 32B to 64B, meaning that there are 40B that can be utilized for passing arguments, which in turn means that there can be up to 5 arguments per tracepoint.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I9993eabb2663078052439320e6d2f6ae607a47ff Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7956 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot
show more ...
|
|
Revision tags: v21.04, v21.04-rc1, v21.01.1, v21.01, v21.01-rc1, v20.10 |
|
| #
e4e218d8 |
| 30-Oct-2020 |
Liu Xiaodong <xiaodong.liu@intel.com> |
trace: disable trace by set num-trace-entries=0
Previously, trace file is always created in shared memory. Adding disabling trace in order to avoid trace file's creation if user doesn't require trac
trace: disable trace by set num-trace-entries=0
Previously, trace file is always created in shared memory. Adding disabling trace in order to avoid trace file's creation if user doesn't require trace.
Also returning error if trace is disabled but trace rpc is call to enable or diable trace group
Change-Id: Ic9ea781a8a1edd530d0a5921b0dc774356ae4d48 Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5195 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
|
Revision tags: v20.10-rc1 |
|
| #
4e8e97c8 |
| 06-Oct-2020 |
Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
log: remove internal log.h header
There is nothing left here, so remove it.
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ib947d42bc577dbebb4650b1be885e05a80f8f8cf Reviewed-
log: remove internal log.h header
There is nothing left here, so remove it.
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ib947d42bc577dbebb4650b1be885e05a80f8f8cf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4541 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Anil Veerabhadrappa <anil.veerabhadrappa@broadcom.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Community-CI: Broadcom CI
show more ...
|
| #
2172c432 |
| 04-Sep-2020 |
Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
log: simplify SPDK_LOG_REGISTER_COMPONENT
This patch removes the string from register component. Removed are all instances in libs or hardcoded in apps.
Starting with this patch literal passed to r
log: simplify SPDK_LOG_REGISTER_COMPONENT
This patch removes the string from register component. Removed are all instances in libs or hardcoded in apps.
Starting with this patch literal passed to register, serves as name for the flag.
All instances of SPDK_LOG_* were replaced with just * in lowercase. No actual name change for flags occur in this patch.
Affected are SPDK_LOG_REGISTER_COMPONENT() and SPDK_*LOG() macros.
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I002b232fde57ecf9c6777726b181fc0341f1bb17 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4495 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Mellanox Build Bot Reviewed-by: Anil Veerabhadrappa <anil.veerabhadrappa@broadcom.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Broadcom CI
show more ...
|
|
Revision tags: v20.07, v20.07-rc1, v20.04.1, v20.01.2, v20.04, v20.04-rc1, v20.01.1, v20.01, v20.01-rc1, v19.10.1, v19.10, v19.10-rc1, v19.07.1 |
|
| #
8a252783 |
| 25-Sep-2019 |
Seth Howell <seth.howell@intel.com> |
log: remove old-style errlog entries.
SPDK_ERRLOG lists the function name, so remove old references that assume it doesn't and reprint the function name.
Change-Id: I69da6ca0a25bf0eda07d8dad52bcfad
log: remove old-style errlog entries.
SPDK_ERRLOG lists the function name, so remove old references that assume it doesn't and reprint the function name.
Change-Id: I69da6ca0a25bf0eda07d8dad52bcfadf964ac715 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469487 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
|
Revision tags: v19.07, v19.04.1 |
|
| #
11ca2e0d |
| 30-Apr-2019 |
Jim Harris <james.r.harris@intel.com> |
trace: print error message if event name is too long
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I8ecf371700c8c0ca5bae03e393b0c32bca258170
Reviewed-on: https://review.gerrithub.
trace: print error message if event name is too long
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I8ecf371700c8c0ca5bae03e393b0c32bca258170
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452735 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>
show more ...
|