Revision tags: v24.05, v24.09-pre, v24.05-rc1, LTS, v24.01, v24.05-pre, v24.01-rc1 |
|
#
5d91b074 |
| 26-Oct-2023 |
Konrad Sztyber <konrad.sztyber@intel.com> |
json: add spdk_json_write_(named)?_uuid()
There are many places where we need to write out a UUID to JSON, so it's useful to have a helper that will do it.
Signed-off-by: Konrad Sztyber <konrad.szt
json: add spdk_json_write_(named)?_uuid()
There are many places where we need to write out a UUID to JSON, so it's useful to have a helper that will do it.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Id192990fb47e9253e96d0b17e85ac88d34769666 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20472 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
Revision tags: 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 |
|
#
70f185ea |
| 16-Nov-2022 |
Thanos Makatos <thanos.makatos@nutanix.com> |
json: add spdk_json_write_named_double
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Suggested-by: Jim Harris <james.r.harris@intel.com> Change-Id: I2439cd739240fb2d95c5cdaccc557ba9a8f6
json: add spdk_json_write_named_double
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Suggested-by: Jim Harris <james.r.harris@intel.com> Change-Id: I2439cd739240fb2d95c5cdaccc557ba9a8f6501b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15490 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: John Levon <levon@movementarian.org> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
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 |
|
#
8dd1cd21 |
| 22-Jun-2022 |
Ben Walker <benjamin.walker@intel.com> |
check_format: For C files only, fix return type breaks
In SPDK, declarations have the return type on the same line. Definitions have the return type on a separate line. Astyle has an option for enfo
check_format: For C files only, fix return type breaks
In SPDK, declarations have the return type on the same line. Definitions have the return type on a separate line. Astyle has an option for enforcing this. Unfortunately, it seems to have two bugs:
1) It doesn't work correctly at all on C++ files. 2) It often fails on functions that return enums, or long type names
Deal with 1) by adjusting the check_format.sh script to only tell astyle to fix return type line breaks for C files and not C++. Deal with 2) by adding a few typedefs to work around the problem.
Change-Id: Idf28281466cab8411ce252d5f02ab384166790c6 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13437 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.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 |
|
#
2c9895de |
| 12-Dec-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
json: add spdk_json_write_bytearray
This function serializes a buffer as a hex string.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I09ab93bc626f6f6543b7c1ef033bcf807050862a
json: add spdk_json_write_bytearray
This function serializes a buffer as a hex string.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I09ab93bc626f6f6543b7c1ef033bcf807050862a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10651 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Community-CI: Mellanox Build Bot
show more ...
|
Revision tags: v21.10, v21.10-rc1 |
|
#
8f8f3f87 |
| 07-Oct-2021 |
Jacek Kalwas <jacek.kalwas@intel.com> |
json: add the spdk_json_write_uint8|16 function
Add the paired spdk_json_write_named_uint8|16 function
Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Change-Id: Ib7ee9ae4dbe9a4e9cfa28750f0b9a
json: add the spdk_json_write_uint8|16 function
Add the paired spdk_json_write_named_uint8|16 function
Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Change-Id: Ib7ee9ae4dbe9a4e9cfa28750f0b9a0af597d260c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9788 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v21.07, v21.07-rc1 |
|
#
2d629511 |
| 21-Jul-2021 |
WindYu <787738581@qq.com> |
json: add the spdk_json_write_uint128 function
Add the paired spdk_json_write_named_uint128 function
Change-Id: I222f0c5076efe150ab2861c0d915d18476815e37 Signed-off-by: GangCao <gang.cao@intel.com>
json: add the spdk_json_write_uint128 function
Add the paired spdk_json_write_named_uint128 function
Change-Id: I222f0c5076efe150ab2861c0d915d18476815e37 Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8797 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@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, v20.10-rc1, 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, v19.07, v19.04.1, v19.04, v18.10.2, v19.01.1, v19.01, v18.10.1, v18.10 |
|
#
d35ee09e |
| 29-Oct-2018 |
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
json: Use not C++ style comments // but C-style comments /* */
Change-Id: I8274d445fc84fce6b0f8f4fd1e57894f54fccfd1 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: htt
json: Use not C++ style comments // but C-style comments /* */
Change-Id: I8274d445fc84fce6b0f8f4fd1e57894f54fccfd1 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/431081 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
show more ...
|
Revision tags: v18.07.1, v18.07, v18.04.1, v18.04, v18.01.1 |
|
#
a5cfd430 |
| 22-Feb-2018 |
Pawel Wodkowski <pawelx.wodkowski@intel.com> |
json: add va_arg versions for write_string and write_named_string
Change-Id: I22ca6db43f797d9e615208b251923d9ce61acec6 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https:
json: add va_arg versions for write_string and write_named_string
Change-Id: I22ca6db43f797d9e615208b251923d9ce61acec6 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/401024 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
show more ...
|
#
d6408c0d |
| 14-Feb-2018 |
Pawel Wodkowski <pawelx.wodkowski@intel.com> |
lib/json: add utility function for writeing key and value at once.
Change-Id: Ibbcf8cebff33159eff8345a5f0f5166cd18ea4b3 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https
lib/json: add utility function for writeing key and value at once.
Change-Id: Ibbcf8cebff33159eff8345a5f0f5166cd18ea4b3 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/400600 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v18.01 |
|
#
7d716668 |
| 31-Jan-2018 |
Daniel Verkamp <daniel.verkamp@intel.com> |
utf.h: remove #include "spdk/json.h"
After the renaming of json_internal.h to utf.h, it doesn't make sense for utf.h to include spdk/json.h.
Move the #include "spdk/json.h" to the JSON library impl
utf.h: remove #include "spdk/json.h"
After the renaming of json_internal.h to utf.h, it doesn't make sense for utf.h to include spdk/json.h.
Move the #include "spdk/json.h" to the JSON library implementation files and remove it from utf.h.
Change-Id: I36092524c9b982fd2e931faf1b7c5d1d6a6c80c0 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/397603 Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
#
0a97bd14 |
| 09-Jan-2018 |
Seth Howell <seth.howell@intel.com> |
json_internal.h: rename to utf.h and place in spdk_internal
Change-Id: I1b1f3a6c10b97c6323e52b58537293f6a6c5c56b Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrit
json_internal.h: rename to utf.h and place in spdk_internal
Change-Id: I1b1f3a6c10b97c6323e52b58537293f6a6c5c56b Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/394117 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
#
59970a89 |
| 07-Dec-2017 |
Daniel Verkamp <daniel.verkamp@intel.com> |
astyle: enforce braces around single-line statements
Require braces around all conditional statements, e.g.:
if (cond) statement();
becomes:
if (cond) { statement(); }
astyle: enforce braces around single-line statements
Require braces around all conditional statements, e.g.:
if (cond) statement();
becomes:
if (cond) { statement(); }
This is the style used through most of the SPDK code, but several exceptions crept in over time. Add the astyle option to make sure we are consistent.
Change-Id: I5a71980147fe8dfb471ff42e8bc06db2124a1a7f Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/390914 Reviewed-by: <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v17.10.1, v17.10, v17.07.1, v17.07 |
|
#
429672d3 |
| 07-Jul-2017 |
Daniel Verkamp <daniel.verkamp@intel.com> |
json: add function to write UTF-16LE strings
spdk_json_write_string_utf16le() writes a UTF-16LE string to a JSON write context.
Change-Id: I413ffb8a3dee6e1b44ec96ce2415fd1b9c36320f Signed-off-by: D
json: add function to write UTF-16LE strings
spdk_json_write_string_utf16le() writes a UTF-16LE string to a JSON write context.
Change-Id: I413ffb8a3dee6e1b44ec96ce2415fd1b9c36320f Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/368625 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v17.03, v16.12 |
|
#
a509ddeb |
| 19-Dec-2016 |
Daniel Verkamp <daniel.verkamp@intel.com> |
json/write: add an output buffer
This improves output speed significantly, especially if the write callback is expensive (e.g. issues a syscall or takes a lock).
On my test system, jsoncat citylots
json/write: add an output buffer
This improves output speed significantly, especially if the write callback is expensive (e.g. issues a syscall or takes a lock).
On my test system, jsoncat citylots.json > /dev/null improves from ~2.8s to ~1.7s.
citylots.json: https://github.com/zemirco/sf-city-lots-json (~181 MiB)
Change-Id: I7d411ce92366712ed87ad5fc6e9b64828541db4d Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
show more ...
|
#
1cb7e396 |
| 18-Nov-2016 |
Daniel Verkamp <daniel.verkamp@intel.com> |
json: add printf-style spdk_json_write_string_fmt()
Change-Id: I9ea18072d4e54344f145a0b2d16aa6ab7f4d5e03 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
|
#
d921d9ed |
| 27-Oct-2016 |
Daniel Verkamp <daniel.verkamp@intel.com> |
json: add spdk_json_write_[u]int64()
Change-Id: I29c2c8f8546774842adf7e77e7bb550735c6fccc Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
|
#
c56b53a8 |
| 26-Oct-2016 |
Daniel Verkamp <daniel.verkamp@intel.com> |
json: add flag to format when writing
Specify SPDK_JSON_WRITE_FLAG_FORMATTED when creating a write context to output more human-readable JSON.
Change-Id: Ie1f0451496aae7e36e4cdb1f05edb4bc4963be17 S
json: add flag to format when writing
Specify SPDK_JSON_WRITE_FLAG_FORMATTED when creating a write context to output more human-readable JSON.
Change-Id: Ie1f0451496aae7e36e4cdb1f05edb4bc4963be17 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
show more ...
|
Revision tags: v16.08, v16.06 |
|
#
ed694026 |
| 10-May-2016 |
Daniel Verkamp <daniel.verkamp@intel.com> |
json: fix spdk_json_write_val with nested objects
When recursively calling spdk_json_write_val() on another object or array, the child call will handle printing out the whole subobject/array, so the
json: fix spdk_json_write_val with nested objects
When recursively calling spdk_json_write_val() on another object or array, the child call will handle printing out the whole subobject/array, so the parent call should skip over all of its values.
Also fix the return value for the array/object case - if we get to the end of the array or object, we should return 0 for success.
Change-Id: I1da80c88ab8759620114c1ab141baaaaf9f0023a Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
show more ...
|
#
f9193f4c |
| 09-May-2016 |
Daniel Verkamp <daniel.verkamp@intel.com> |
json: add JSON parser and encoder libraries
Change-Id: Id73fb7e300d66d31a7c3986c0334b6f56e284905 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
|