@zowe/cli 8.37.0 → 8.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/zosfiles/edit/Edit.utils.d.ts.map +1 -1
- package/lib/zosfiles/edit/Edit.utils.js +5 -1
- package/lib/zosfiles/edit/Edit.utils.js.map +1 -1
- package/node_modules/@zowe/core-for-zowe-sdk/package.json +3 -3
- package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.d.ts +1 -1
- package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.d.ts.map +1 -1
- package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.js +10 -12
- package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvItems.js.map +1 -1
- package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvQuery.d.ts.map +1 -1
- package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvQuery.js +1 -4
- package/node_modules/@zowe/imperative/lib/imperative/src/config/cmd/report-env/EnvQuery.js.map +1 -1
- package/node_modules/@zowe/imperative/package.json +1 -1
- package/node_modules/@zowe/imperative/web-help/package-lock.json +58 -58
- package/node_modules/@zowe/provisioning-for-zowe-sdk/package.json +4 -4
- package/node_modules/@zowe/zos-console-for-zowe-sdk/package.json +4 -4
- package/node_modules/@zowe/zos-files-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zos-jobs-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zos-logs-for-zowe-sdk/package.json +4 -4
- package/node_modules/@zowe/zos-tso-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zos-uss-for-zowe-sdk/package.json +3 -3
- package/node_modules/@zowe/zos-workflows-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zosmf-for-zowe-sdk/package.json +4 -4
- package/node_modules/buildcheck/.eslintrc.js +5 -0
- package/node_modules/buildcheck/.github/workflows/ci.yml +72 -0
- package/node_modules/buildcheck/.github/workflows/lint.yml +23 -0
- package/node_modules/buildcheck/.npmignore +3 -0
- package/node_modules/{@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion → buildcheck}/LICENSE +10 -14
- package/node_modules/buildcheck/README.md +106 -0
- package/node_modules/buildcheck/deps/Find-VisualStudio.cs +250 -0
- package/node_modules/buildcheck/lib/findvs.js +345 -0
- package/node_modules/buildcheck/lib/index.js +738 -0
- package/node_modules/buildcheck/package.json +36 -0
- package/node_modules/buildcheck/test/test.js +8 -0
- package/node_modules/cpu-features/.eslintrc.js +5 -0
- package/node_modules/cpu-features/.github/workflows/ci.yml +68 -0
- package/node_modules/cpu-features/.github/workflows/lint.yml +27 -0
- package/node_modules/cpu-features/LICENSE +19 -0
- package/node_modules/cpu-features/README.md +59 -0
- package/node_modules/cpu-features/binding.gyp +16 -0
- package/node_modules/cpu-features/buildcheck.gypi +19 -0
- package/node_modules/cpu-features/buildcheck.js +32 -0
- package/node_modules/cpu-features/deps/cpu_features/.clang-format +4 -0
- package/node_modules/cpu-features/deps/cpu_features/.dockerignore +31 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +5 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +30 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +22 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +26 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +31 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +43 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +25 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +31 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +24 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +30 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +29 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +28 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +27 -0
- package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +21 -0
- package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +329 -0
- package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +261 -0
- package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +23 -0
- package/node_modules/cpu-features/deps/cpu_features/LICENSE +230 -0
- package/node_modules/cpu-features/deps/cpu_features/README.md +272 -0
- package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +19 -0
- package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +5 -0
- package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +11 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +3 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +3 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +30 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +252 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +40 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +64 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +312 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +7 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +48 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +34 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +22 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +11 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +107 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +15 -0
- package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +104 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +54 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +384 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +259 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +121 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +74 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +149 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +72 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +108 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +288 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +40 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +37 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +39 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +240 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +49 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +110 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +70 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +60 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +4 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +205 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +320 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +12 -0
- package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +456 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +165 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +75 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +490 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +79 -0
- package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +19 -0
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +86 -0
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +26 -0
- package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +22 -0
- package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +62 -0
- package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +169 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +88 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +79 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +82 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +138 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +212 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +93 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +163 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +111 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +120 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +2055 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +68 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +58 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +57 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +58 -0
- package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +132 -0
- package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +192 -0
- package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +461 -0
- package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +114 -0
- package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +53 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +396 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +384 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +176 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +131 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +180 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +82 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +1729 -0
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +103 -0
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +61 -0
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +52 -0
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +31 -0
- package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +132 -0
- package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +202 -0
- package/node_modules/cpu-features/lib/index.js +5 -0
- package/node_modules/cpu-features/package.json +40 -0
- package/node_modules/cpu-features/src/binding.cc +151 -0
- package/node_modules/cpu-features/test/test.js +12 -0
- package/node_modules/{@zowe/imperative → cross-spawn}/node_modules/which/README.md +16 -13
- package/node_modules/{@zowe/imperative → cross-spawn/node_modules/which}/node_modules/isexe/LICENSE +1 -1
- package/node_modules/cross-spawn/node_modules/which/node_modules/isexe/README.md +51 -0
- package/node_modules/cross-spawn/node_modules/which/node_modules/isexe/package.json +31 -0
- package/node_modules/cross-spawn/node_modules/which/package.json +43 -0
- package/node_modules/isexe/LICENSE +1 -1
- package/node_modules/isexe/README.md +40 -17
- package/node_modules/isexe/package.json +79 -14
- package/node_modules/which/README.md +13 -16
- package/node_modules/which/package.json +34 -20
- package/package.json +13 -13
- package/node_modules/@zowe/imperative/node_modules/isexe/README.md +0 -74
- package/node_modules/@zowe/imperative/node_modules/isexe/package.json +0 -96
- package/node_modules/@zowe/imperative/node_modules/which/package.json +0 -57
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-arm64.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-x64.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm-gnueabihf.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm64-gnu.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm64-musl.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-ia32-gnu.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-x64-gnu.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-x64-musl.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-arm64-msvc.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-ia32-msvc.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-x64-msvc.node +0 -0
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/LICENSE.md +0 -23
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/README.md +0 -57
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.d.ts +0 -9
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.js +0 -59
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.d.ts +0 -9
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.js +0 -54
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/dist/esm/index.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match/package.json +0 -68
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/README.md +0 -105
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.d.ts +0 -8
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.js +0 -289
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/commonjs/package.json +0 -3
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.d.ts +0 -8
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.js +0 -285
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/dist/esm/package.json +0 -3
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/brace-expansion/package.json +0 -64
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/LICENSE.md +0 -55
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/README.md +0 -528
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.js +0 -846
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.js +0 -30
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.d.ts +0 -174
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.js +0 -1121
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/package.json +0 -3
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.js +0 -842
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.js +0 -26
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/escape.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.d.ts +0 -174
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.js +0 -1108
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/index.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/package.json +0 -3
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.js +0 -34
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/node_modules/minimatch/package.json +0 -67
- package/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +0 -3
- package/node_modules/tar/node_modules/yallist/dist/esm/package.json +0 -3
- /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
- /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/index.js +0 -0
- /package/node_modules/{shebang-command/node_modules/shebang-regex → ansi-regex}/license +0 -0
- /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/package.json +0 -0
- /package/node_modules/{strip-ansi/node_modules/ansi-regex → ansi-regex}/readme.md +0 -0
- /package/node_modules/{winston/node_modules/async → async}/CHANGELOG.md +0 -0
- /package/node_modules/{winston/node_modules/async → async}/LICENSE +0 -0
- /package/node_modules/{winston/node_modules/async → async}/README.md +0 -0
- /package/node_modules/{winston/node_modules/async → async}/all.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/allLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/allSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/any.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/anyLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/anySeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/apply.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/applyEach.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/applyEachSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/asyncify.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/auto.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/autoInject.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/bower.json +0 -0
- /package/node_modules/{winston/node_modules/async → async}/cargo.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/cargoQueue.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/compose.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/concat.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/concatLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/concatSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/constant.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/detect.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/detectLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/detectSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/dir.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/dist/async.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/dist/async.min.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/dist/async.mjs +0 -0
- /package/node_modules/{winston/node_modules/async → async}/doDuring.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/doUntil.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/doWhilst.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/during.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/each.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/eachLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/eachOf.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/eachOfLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/eachOfSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/eachSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/ensureAsync.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/every.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/everyLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/everySeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/filter.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/filterLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/filterSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/find.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/findLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/findSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/flatMap.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/flatMapLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/flatMapSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/foldl.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/foldr.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/forEach.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/forEachLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/forEachOf.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/forEachOfLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/forEachOfSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/forEachSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/forever.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/groupBy.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/groupByLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/groupBySeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/index.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/inject.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/DoublyLinkedList.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/Heap.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/applyEach.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/asyncEachOfLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/awaitify.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/breakLoop.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/consoleFunc.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/createTester.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/eachOfLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/filter.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/getIterator.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/initialParams.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/isArrayLike.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/iterator.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/map.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/once.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/onlyOnce.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/parallel.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/promiseCallback.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/queue.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/range.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/reject.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/setImmediate.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/withoutIndex.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/internal/wrapAsync.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/log.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/map.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/mapLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/mapSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/mapValues.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/mapValuesLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/mapValuesSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/memoize.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/nextTick.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/package.json +0 -0
- /package/node_modules/{winston/node_modules/async → async}/parallel.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/parallelLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/priorityQueue.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/queue.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/race.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/reduce.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/reduceRight.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/reflect.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/reflectAll.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/reject.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/rejectLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/rejectSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/retry.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/retryable.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/select.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/selectLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/selectSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/seq.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/series.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/setImmediate.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/some.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/someLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/someSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/sortBy.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/timeout.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/times.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/timesLimit.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/timesSeries.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/transform.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/tryEach.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/unmemoize.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/until.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/waterfall.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/whilst.js +0 -0
- /package/node_modules/{winston/node_modules/async → async}/wrapSync.js +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/LICENSE.txt +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/README.md +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/build/index.cjs +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/build/index.d.cts +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/build/lib/index.js +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/build/lib/string-utils.js +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/index.mjs +0 -0
- /package/node_modules/{yargs/node_modules/cliui → cliui}/package.json +0 -0
- /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/.eslintrc.json +0 -0
- /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/.npmignore +0 -0
- /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/LICENSE +0 -0
- /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/README.md +0 -0
- /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/index.js +0 -0
- /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/package.json +0 -0
- /package/node_modules/color/node_modules/{color-name → color-convert/node_modules/color-name}/test.js +0 -0
- /package/node_modules/{@zowe/imperative → cross-spawn}/node_modules/which/LICENSE +0 -0
- /package/node_modules/{which → cross-spawn/node_modules/which}/bin/node-which +0 -0
- /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/.npmignore +0 -0
- /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/index.js +0 -0
- /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/mode.js +0 -0
- /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/test/basic.js +0 -0
- /package/node_modules/{isexe → cross-spawn/node_modules/which/node_modules/isexe}/windows.js +0 -0
- /package/node_modules/{which → cross-spawn/node_modules/which}/which.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/LICENSE +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/README.md +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/foreign-names.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/dist/index.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/package.json +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/src/foreign-names.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/dom-serializer → dom-serializer}/src/index.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/LICENSE +0 -0
- /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/dist/index.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/dist/index.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/dist/index.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/package.json +0 -0
- /package/node_modules/{sanitize-html/node_modules/domelementtype → domelementtype}/readme.md +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/LICENSE +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/index.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/index.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/index.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/node.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/node.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/dist/node.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/package.json +0 -0
- /package/node_modules/{sanitize-html/node_modules/domhandler → domhandler}/readme.md +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/LICENSE +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/feeds.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/helpers.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/index.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/legacy.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/manipulation.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/querying.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/stringify.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/dist/traversal.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/package.json +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/readme.md +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/__snapshots__/feeds.spec.ts.snap +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/feeds.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/helpers.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/index.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/legacy.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/manipulation.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/querying.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/stringify.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/domutils → domutils}/src/traversal.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/LICENSE +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/README.md +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Parser.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/Tokenizer.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WebWritableStream.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/WritableStream.js.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.d.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.d.ts.map +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.js +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/dist/index.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/LICENSE +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode-codepoint.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/decode.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/encode.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/escape.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-html.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/decode-data-xml.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/generated/encode-html.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/index.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.d.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.d.ts.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.js +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/dist/internal/decode-shared.js.map +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/package.json +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/readme.md +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/decode-codepoint.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/decode.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/encode.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/escape.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/generated/decode-data-html.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/generated/decode-data-xml.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/generated/encode-html.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/index.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/internal/bin-trie-flags.ts +0 -0
- /package/node_modules/{sanitize-html → htmlparser2}/node_modules/entities/src/internal/decode-shared.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/package.json +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/Parser.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/Tokenizer.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/WebWritableStream.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/WritableStream.ts +0 -0
- /package/node_modules/{sanitize-html/node_modules/htmlparser2 → htmlparser2}/src/index.ts +0 -0
- /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/LICENSE +0 -0
- /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/README.md +0 -0
- /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/index.js +0 -0
- /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/package.json +0 -0
- /package/node_modules/{simple-swizzle/node_modules/is-arrayish → is-arrayish}/yarn-error.log +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/index.js.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/options.js.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/package.json +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/posix.js.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/cjs/win32.js.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/index.js.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/options.js.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/package.json +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/posix.js.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.d.ts +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.d.ts.map +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/isexe → isexe}/dist/mjs/win32.js.map +0 -0
- /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/index.d.ts +0 -0
- /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/index.js +0 -0
- /package/node_modules/{strip-ansi/node_modules/ansi-regex → shebang-regex}/license +0 -0
- /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/package.json +0 -0
- /package/node_modules/{shebang-command/node_modules/shebang-regex → shebang-regex}/readme.md +0 -0
- /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/LICENSE +0 -0
- /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/README.md +0 -0
- /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/index.js +0 -0
- /package/node_modules/streamroller/node_modules/{jsonfile → fs-extra/node_modules/jsonfile}/package.json +0 -0
- /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/LICENSE +0 -0
- /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/README.md +0 -0
- /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/index.js +0 -0
- /package/node_modules/streamroller/node_modules/{universalify → fs-extra/node_modules/universalify}/package.json +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/which → which}/bin/which.js +0 -0
- /package/node_modules/{@zowe/imperative/node_modules/which → which}/lib/index.js +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/LICENSE +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/README.md +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/build/index.cjs +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/build/lib/cjs.js +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/build/lib/index.js +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/build/lib/platform-shims/node.js +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/index.mjs +0 -0
- /package/node_modules/{yargs/node_modules/y18n → y18n}/package.json +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/LICENSE.md +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/README.md +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.d.ts +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.d.ts.map +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js.map +0 -0
- /package/node_modules/{@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match → yallist}/dist/commonjs/package.json +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.d.ts +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.d.ts.map +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js.map +0 -0
- /package/node_modules/{@zowe/zos-files-for-zowe-sdk/node_modules/balanced-match → yallist}/dist/esm/package.json +0 -0
- /package/node_modules/{tar/node_modules/yallist → yallist}/package.json +0 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
// Copyright 2017 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// This program dumps current host data to the standard output.
|
|
16
|
+
// Output can be text or json if the `--json` flag is passed.
|
|
17
|
+
|
|
18
|
+
#include <assert.h>
|
|
19
|
+
#include <stdarg.h>
|
|
20
|
+
#include <stdbool.h>
|
|
21
|
+
#include <stdint.h>
|
|
22
|
+
#include <stdio.h>
|
|
23
|
+
#include <stdlib.h>
|
|
24
|
+
#include <string.h>
|
|
25
|
+
|
|
26
|
+
#include "cpu_features_macros.h"
|
|
27
|
+
|
|
28
|
+
#if defined(CPU_FEATURES_ARCH_X86)
|
|
29
|
+
#include "cpuinfo_x86.h"
|
|
30
|
+
#elif defined(CPU_FEATURES_ARCH_ARM)
|
|
31
|
+
#include "cpuinfo_arm.h"
|
|
32
|
+
#elif defined(CPU_FEATURES_ARCH_AARCH64)
|
|
33
|
+
#include "cpuinfo_aarch64.h"
|
|
34
|
+
#elif defined(CPU_FEATURES_ARCH_MIPS)
|
|
35
|
+
#include "cpuinfo_mips.h"
|
|
36
|
+
#elif defined(CPU_FEATURES_ARCH_PPC)
|
|
37
|
+
#include "cpuinfo_ppc.h"
|
|
38
|
+
#elif defined(CPU_FEATURES_ARCH_S390X)
|
|
39
|
+
#include "cpuinfo_s390x.h"
|
|
40
|
+
#elif defined(CPU_FEATURES_ARCH_RISCV)
|
|
41
|
+
#include "cpuinfo_riscv.h"
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
// Design principles
|
|
45
|
+
// -----------------
|
|
46
|
+
// We build a tree structure containing all the data to be displayed.
|
|
47
|
+
// Then depending on the output type (text or json) we walk the tree and display
|
|
48
|
+
// the data accordingly.
|
|
49
|
+
|
|
50
|
+
// We use a bump allocator to allocate strings and nodes of the tree,
|
|
51
|
+
// Memory is not intended to be reclaimed.
|
|
52
|
+
typedef struct {
|
|
53
|
+
char* ptr;
|
|
54
|
+
size_t size;
|
|
55
|
+
} BumpAllocator;
|
|
56
|
+
|
|
57
|
+
char gGlobalBuffer[64 * 1024];
|
|
58
|
+
BumpAllocator gBumpAllocator = {.ptr = gGlobalBuffer,
|
|
59
|
+
.size = sizeof(gGlobalBuffer)};
|
|
60
|
+
|
|
61
|
+
static void internal_error(void) {
|
|
62
|
+
fputs("internal error\n", stderr);
|
|
63
|
+
exit(EXIT_FAILURE);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#define ALIGN 8
|
|
67
|
+
|
|
68
|
+
static void assertAligned(void) {
|
|
69
|
+
if ((uintptr_t)(gBumpAllocator.ptr) % ALIGN) internal_error();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
static void BA_Align(void) {
|
|
73
|
+
while (gBumpAllocator.size && (uintptr_t)(gBumpAllocator.ptr) % ALIGN) {
|
|
74
|
+
--gBumpAllocator.size;
|
|
75
|
+
++gBumpAllocator.ptr;
|
|
76
|
+
}
|
|
77
|
+
assertAligned();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Update the available memory left in the BumpAllocator.
|
|
81
|
+
static void* BA_Bump(size_t size) {
|
|
82
|
+
assertAligned();
|
|
83
|
+
// Align size to next 8B boundary.
|
|
84
|
+
size = (size + ALIGN - 1) / ALIGN * ALIGN;
|
|
85
|
+
if (gBumpAllocator.size < size) internal_error();
|
|
86
|
+
void* ptr = gBumpAllocator.ptr;
|
|
87
|
+
gBumpAllocator.size -= size;
|
|
88
|
+
gBumpAllocator.ptr += size;
|
|
89
|
+
return ptr;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// The type of the nodes in the tree.
|
|
93
|
+
typedef enum {
|
|
94
|
+
NT_INVALID,
|
|
95
|
+
NT_INT,
|
|
96
|
+
NT_MAP,
|
|
97
|
+
NT_MAP_ENTRY,
|
|
98
|
+
NT_ARRAY,
|
|
99
|
+
NT_ARRAY_ELEMENT,
|
|
100
|
+
NT_STRING,
|
|
101
|
+
} NodeType;
|
|
102
|
+
|
|
103
|
+
// The node in the tree.
|
|
104
|
+
typedef struct Node {
|
|
105
|
+
NodeType type;
|
|
106
|
+
unsigned integer;
|
|
107
|
+
const char* string;
|
|
108
|
+
struct Node* value;
|
|
109
|
+
struct Node* next;
|
|
110
|
+
} Node;
|
|
111
|
+
|
|
112
|
+
// Creates an initialized Node.
|
|
113
|
+
static Node* BA_CreateNode(NodeType type) {
|
|
114
|
+
Node* tv = (Node*)BA_Bump(sizeof(Node));
|
|
115
|
+
assert(tv);
|
|
116
|
+
*tv = (Node){.type = type};
|
|
117
|
+
return tv;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Adds an integer node.
|
|
121
|
+
static Node* CreateInt(int value) {
|
|
122
|
+
Node* tv = BA_CreateNode(NT_INT);
|
|
123
|
+
tv->integer = value;
|
|
124
|
+
return tv;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Adds a string node.
|
|
128
|
+
// `value` must outlive the tree.
|
|
129
|
+
static Node* CreateConstantString(const char* value) {
|
|
130
|
+
Node* tv = BA_CreateNode(NT_STRING);
|
|
131
|
+
tv->string = value;
|
|
132
|
+
return tv;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Adds a map node.
|
|
136
|
+
static Node* CreateMap(void) { return BA_CreateNode(NT_MAP); }
|
|
137
|
+
|
|
138
|
+
// Adds an array node.
|
|
139
|
+
static Node* CreateArray(void) { return BA_CreateNode(NT_ARRAY); }
|
|
140
|
+
|
|
141
|
+
// Adds a formatted string node.
|
|
142
|
+
static Node* CreatePrintfString(const char* format, ...) {
|
|
143
|
+
va_list arglist;
|
|
144
|
+
va_start(arglist, format);
|
|
145
|
+
char* const ptr = gBumpAllocator.ptr;
|
|
146
|
+
const int written = vsnprintf(ptr, gBumpAllocator.size, format, arglist);
|
|
147
|
+
va_end(arglist);
|
|
148
|
+
if (written < 0 || written >= (int)gBumpAllocator.size) internal_error();
|
|
149
|
+
return CreateConstantString((char*)BA_Bump(written));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Adds a string node.
|
|
153
|
+
static Node* CreateString(const char* value) {
|
|
154
|
+
return CreatePrintfString("%s", value);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Adds a map entry node.
|
|
158
|
+
static void AddMapEntry(Node* map, const char* key, Node* value) {
|
|
159
|
+
assert(map && map->type == NT_MAP);
|
|
160
|
+
Node* current = map;
|
|
161
|
+
while (current->next) current = current->next;
|
|
162
|
+
current->next = (Node*)BA_Bump(sizeof(Node));
|
|
163
|
+
*current->next = (Node){.type = NT_MAP_ENTRY, .string = key, .value = value};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Adds an array element node.
|
|
167
|
+
static void AddArrayElement(Node* array, Node* value) {
|
|
168
|
+
assert(array && array->type == NT_ARRAY);
|
|
169
|
+
Node* current = array;
|
|
170
|
+
while (current->next) current = current->next;
|
|
171
|
+
current->next = (Node*)BA_Bump(sizeof(Node));
|
|
172
|
+
*current->next = (Node){.type = NT_ARRAY_ELEMENT, .value = value};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
static int cmp(const void* p1, const void* p2) {
|
|
176
|
+
return strcmp(*(const char* const*)p1, *(const char* const*)p2);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#define DEFINE_ADD_FLAGS(HasFeature, FeatureName, FeatureType, LastEnum) \
|
|
180
|
+
static void AddFlags(Node* map, const FeatureType* features) { \
|
|
181
|
+
size_t i; \
|
|
182
|
+
const char* ptrs[LastEnum] = {0}; \
|
|
183
|
+
size_t count = 0; \
|
|
184
|
+
for (i = 0; i < LastEnum; ++i) { \
|
|
185
|
+
if (HasFeature(features, i)) { \
|
|
186
|
+
ptrs[count] = FeatureName(i); \
|
|
187
|
+
++count; \
|
|
188
|
+
} \
|
|
189
|
+
} \
|
|
190
|
+
qsort((void*)ptrs, count, sizeof(char*), cmp); \
|
|
191
|
+
Node* const array = CreateArray(); \
|
|
192
|
+
for (i = 0; i < count; ++i) \
|
|
193
|
+
AddArrayElement(array, CreateConstantString(ptrs[i])); \
|
|
194
|
+
AddMapEntry(map, "flags", array); \
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
#if defined(CPU_FEATURES_ARCH_X86)
|
|
198
|
+
DEFINE_ADD_FLAGS(GetX86FeaturesEnumValue, GetX86FeaturesEnumName, X86Features,
|
|
199
|
+
X86_LAST_)
|
|
200
|
+
#elif defined(CPU_FEATURES_ARCH_ARM)
|
|
201
|
+
DEFINE_ADD_FLAGS(GetArmFeaturesEnumValue, GetArmFeaturesEnumName, ArmFeatures,
|
|
202
|
+
ARM_LAST_)
|
|
203
|
+
#elif defined(CPU_FEATURES_ARCH_AARCH64)
|
|
204
|
+
DEFINE_ADD_FLAGS(GetAarch64FeaturesEnumValue, GetAarch64FeaturesEnumName,
|
|
205
|
+
Aarch64Features, AARCH64_LAST_)
|
|
206
|
+
#elif defined(CPU_FEATURES_ARCH_MIPS)
|
|
207
|
+
DEFINE_ADD_FLAGS(GetMipsFeaturesEnumValue, GetMipsFeaturesEnumName,
|
|
208
|
+
MipsFeatures, MIPS_LAST_)
|
|
209
|
+
#elif defined(CPU_FEATURES_ARCH_PPC)
|
|
210
|
+
DEFINE_ADD_FLAGS(GetPPCFeaturesEnumValue, GetPPCFeaturesEnumName, PPCFeatures,
|
|
211
|
+
PPC_LAST_)
|
|
212
|
+
#elif defined(CPU_FEATURES_ARCH_S390X)
|
|
213
|
+
DEFINE_ADD_FLAGS(GetS390XFeaturesEnumValue, GetS390XFeaturesEnumName, S390XFeatures,
|
|
214
|
+
S390X_LAST_)
|
|
215
|
+
#elif defined(CPU_FEATURES_ARCH_RISCV)
|
|
216
|
+
DEFINE_ADD_FLAGS(GetRiscvFeaturesEnumValue, GetRiscvFeaturesEnumName, RiscvFeatures,
|
|
217
|
+
RISCV_LAST_)
|
|
218
|
+
#endif
|
|
219
|
+
|
|
220
|
+
// Prints a json string with characters escaping.
|
|
221
|
+
static void printJsonString(const char* str) {
|
|
222
|
+
putchar('"');
|
|
223
|
+
for (; str && *str; ++str) {
|
|
224
|
+
switch (*str) {
|
|
225
|
+
case '\"':
|
|
226
|
+
case '\\':
|
|
227
|
+
case '/':
|
|
228
|
+
case '\b':
|
|
229
|
+
case '\f':
|
|
230
|
+
case '\n':
|
|
231
|
+
case '\r':
|
|
232
|
+
case '\t':
|
|
233
|
+
putchar('\\');
|
|
234
|
+
}
|
|
235
|
+
putchar(*str);
|
|
236
|
+
}
|
|
237
|
+
putchar('"');
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Walks a Node and print it as json.
|
|
241
|
+
static void printJson(const Node* current) {
|
|
242
|
+
assert(current);
|
|
243
|
+
switch (current->type) {
|
|
244
|
+
case NT_INVALID:
|
|
245
|
+
break;
|
|
246
|
+
case NT_INT:
|
|
247
|
+
printf("%d", current->integer);
|
|
248
|
+
break;
|
|
249
|
+
case NT_STRING:
|
|
250
|
+
printJsonString(current->string);
|
|
251
|
+
break;
|
|
252
|
+
case NT_ARRAY:
|
|
253
|
+
putchar('[');
|
|
254
|
+
if (current->next) printJson(current->next);
|
|
255
|
+
putchar(']');
|
|
256
|
+
break;
|
|
257
|
+
case NT_MAP:
|
|
258
|
+
putchar('{');
|
|
259
|
+
if (current->next) printJson(current->next);
|
|
260
|
+
putchar('}');
|
|
261
|
+
break;
|
|
262
|
+
case NT_MAP_ENTRY:
|
|
263
|
+
printf("\"%s\":", current->string);
|
|
264
|
+
printJson(current->value);
|
|
265
|
+
if (current->next) {
|
|
266
|
+
putchar(',');
|
|
267
|
+
printJson(current->next);
|
|
268
|
+
}
|
|
269
|
+
break;
|
|
270
|
+
case NT_ARRAY_ELEMENT:
|
|
271
|
+
printJson(current->value);
|
|
272
|
+
if (current->next) {
|
|
273
|
+
putchar(',');
|
|
274
|
+
printJson(current->next);
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// Walks a Node and print it as text.
|
|
281
|
+
static void printTextField(const Node* current) {
|
|
282
|
+
switch (current->type) {
|
|
283
|
+
case NT_INVALID:
|
|
284
|
+
break;
|
|
285
|
+
case NT_INT:
|
|
286
|
+
printf("%3d (0x%02X)", current->integer, current->integer);
|
|
287
|
+
break;
|
|
288
|
+
case NT_STRING:
|
|
289
|
+
fputs(current->string, stdout);
|
|
290
|
+
break;
|
|
291
|
+
case NT_ARRAY:
|
|
292
|
+
if (current->next) printTextField(current->next);
|
|
293
|
+
break;
|
|
294
|
+
case NT_MAP:
|
|
295
|
+
if (current->next) {
|
|
296
|
+
printf("{");
|
|
297
|
+
printJson(current->next);
|
|
298
|
+
printf("}");
|
|
299
|
+
}
|
|
300
|
+
break;
|
|
301
|
+
case NT_MAP_ENTRY:
|
|
302
|
+
printf("%-15s : ", current->string);
|
|
303
|
+
printTextField(current->value);
|
|
304
|
+
if (current->next) {
|
|
305
|
+
putchar('\n');
|
|
306
|
+
printTextField(current->next);
|
|
307
|
+
}
|
|
308
|
+
break;
|
|
309
|
+
case NT_ARRAY_ELEMENT:
|
|
310
|
+
printTextField(current->value);
|
|
311
|
+
if (current->next) {
|
|
312
|
+
putchar(',');
|
|
313
|
+
printTextField(current->next);
|
|
314
|
+
}
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
static void printTextRoot(const Node* current) {
|
|
320
|
+
if (current->type == NT_MAP && current->next) printTextField(current->next);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
static void showUsage(const char* name) {
|
|
324
|
+
printf(
|
|
325
|
+
"\n"
|
|
326
|
+
"Usage: %s [options]\n"
|
|
327
|
+
" Options:\n"
|
|
328
|
+
" -h | --help Show help message.\n"
|
|
329
|
+
" -j | --json Format output as json instead of plain text.\n"
|
|
330
|
+
"\n",
|
|
331
|
+
name);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
static Node* GetCacheTypeString(CacheType cache_type) {
|
|
335
|
+
switch (cache_type) {
|
|
336
|
+
case CPU_FEATURE_CACHE_NULL:
|
|
337
|
+
return CreateConstantString("null");
|
|
338
|
+
case CPU_FEATURE_CACHE_DATA:
|
|
339
|
+
return CreateConstantString("data");
|
|
340
|
+
case CPU_FEATURE_CACHE_INSTRUCTION:
|
|
341
|
+
return CreateConstantString("instruction");
|
|
342
|
+
case CPU_FEATURE_CACHE_UNIFIED:
|
|
343
|
+
return CreateConstantString("unified");
|
|
344
|
+
case CPU_FEATURE_CACHE_TLB:
|
|
345
|
+
return CreateConstantString("tlb");
|
|
346
|
+
case CPU_FEATURE_CACHE_DTLB:
|
|
347
|
+
return CreateConstantString("dtlb");
|
|
348
|
+
case CPU_FEATURE_CACHE_STLB:
|
|
349
|
+
return CreateConstantString("stlb");
|
|
350
|
+
case CPU_FEATURE_CACHE_PREFETCH:
|
|
351
|
+
return CreateConstantString("prefetch");
|
|
352
|
+
}
|
|
353
|
+
CPU_FEATURES_UNREACHABLE();
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
static void AddCacheInfo(Node* root, const CacheInfo* cache_info) {
|
|
357
|
+
Node* array = CreateArray();
|
|
358
|
+
for (int i = 0; i < cache_info->size; ++i) {
|
|
359
|
+
CacheLevelInfo info = cache_info->levels[i];
|
|
360
|
+
Node* map = CreateMap();
|
|
361
|
+
AddMapEntry(map, "level", CreateInt(info.level));
|
|
362
|
+
AddMapEntry(map, "cache_type", GetCacheTypeString(info.cache_type));
|
|
363
|
+
AddMapEntry(map, "cache_size", CreateInt(info.cache_size));
|
|
364
|
+
AddMapEntry(map, "ways", CreateInt(info.ways));
|
|
365
|
+
AddMapEntry(map, "line_size", CreateInt(info.line_size));
|
|
366
|
+
AddMapEntry(map, "tlb_entries", CreateInt(info.tlb_entries));
|
|
367
|
+
AddMapEntry(map, "partitioning", CreateInt(info.partitioning));
|
|
368
|
+
AddArrayElement(array, map);
|
|
369
|
+
}
|
|
370
|
+
AddMapEntry(root, "cache_info", array);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
static Node* CreateTree(void) {
|
|
374
|
+
Node* root = CreateMap();
|
|
375
|
+
#if defined(CPU_FEATURES_ARCH_X86)
|
|
376
|
+
const X86Info info = GetX86Info();
|
|
377
|
+
const CacheInfo cache_info = GetX86CacheInfo();
|
|
378
|
+
AddMapEntry(root, "arch", CreateString("x86"));
|
|
379
|
+
AddMapEntry(root, "brand", CreateString(info.brand_string));
|
|
380
|
+
AddMapEntry(root, "family", CreateInt(info.family));
|
|
381
|
+
AddMapEntry(root, "model", CreateInt(info.model));
|
|
382
|
+
AddMapEntry(root, "stepping", CreateInt(info.stepping));
|
|
383
|
+
AddMapEntry(root, "uarch",
|
|
384
|
+
CreateString(
|
|
385
|
+
GetX86MicroarchitectureName(GetX86Microarchitecture(&info))));
|
|
386
|
+
AddFlags(root, &info.features);
|
|
387
|
+
AddCacheInfo(root, &cache_info);
|
|
388
|
+
#elif defined(CPU_FEATURES_ARCH_ARM)
|
|
389
|
+
const ArmInfo info = GetArmInfo();
|
|
390
|
+
AddMapEntry(root, "arch", CreateString("ARM"));
|
|
391
|
+
AddMapEntry(root, "implementer", CreateInt(info.implementer));
|
|
392
|
+
AddMapEntry(root, "architecture", CreateInt(info.architecture));
|
|
393
|
+
AddMapEntry(root, "variant", CreateInt(info.variant));
|
|
394
|
+
AddMapEntry(root, "part", CreateInt(info.part));
|
|
395
|
+
AddMapEntry(root, "revision", CreateInt(info.revision));
|
|
396
|
+
AddFlags(root, &info.features);
|
|
397
|
+
#elif defined(CPU_FEATURES_ARCH_AARCH64)
|
|
398
|
+
const Aarch64Info info = GetAarch64Info();
|
|
399
|
+
AddMapEntry(root, "arch", CreateString("aarch64"));
|
|
400
|
+
AddMapEntry(root, "implementer", CreateInt(info.implementer));
|
|
401
|
+
AddMapEntry(root, "variant", CreateInt(info.variant));
|
|
402
|
+
AddMapEntry(root, "part", CreateInt(info.part));
|
|
403
|
+
AddMapEntry(root, "revision", CreateInt(info.revision));
|
|
404
|
+
AddFlags(root, &info.features);
|
|
405
|
+
#elif defined(CPU_FEATURES_ARCH_MIPS)
|
|
406
|
+
const MipsInfo info = GetMipsInfo();
|
|
407
|
+
AddMapEntry(root, "arch", CreateString("mips"));
|
|
408
|
+
AddFlags(root, &info.features);
|
|
409
|
+
#elif defined(CPU_FEATURES_ARCH_PPC)
|
|
410
|
+
const PPCInfo info = GetPPCInfo();
|
|
411
|
+
const PPCPlatformStrings strings = GetPPCPlatformStrings();
|
|
412
|
+
AddMapEntry(root, "arch", CreateString("ppc"));
|
|
413
|
+
AddMapEntry(root, "platform", CreateString(strings.platform));
|
|
414
|
+
AddMapEntry(root, "model", CreateString(strings.model));
|
|
415
|
+
AddMapEntry(root, "machine", CreateString(strings.machine));
|
|
416
|
+
AddMapEntry(root, "cpu", CreateString(strings.cpu));
|
|
417
|
+
AddMapEntry(root, "instruction", CreateString(strings.type.platform));
|
|
418
|
+
AddMapEntry(root, "microarchitecture",
|
|
419
|
+
CreateString(strings.type.base_platform));
|
|
420
|
+
AddFlags(root, &info.features);
|
|
421
|
+
#elif defined(CPU_FEATURES_ARCH_S390X)
|
|
422
|
+
const S390XInfo info = GetS390XInfo();
|
|
423
|
+
const S390XPlatformStrings strings = GetS390XPlatformStrings();
|
|
424
|
+
AddMapEntry(root, "arch", CreateString("s390x"));
|
|
425
|
+
AddMapEntry(root, "platform", CreateString("zSeries"));
|
|
426
|
+
AddMapEntry(root, "model", CreateString(strings.type.platform));
|
|
427
|
+
AddMapEntry(root, "# processors", CreateInt(strings.num_processors));
|
|
428
|
+
AddFlags(root, &info.features);
|
|
429
|
+
#elif defined(CPU_FEATURES_ARCH_RISCV)
|
|
430
|
+
const RiscvInfo info = GetRiscvInfo();
|
|
431
|
+
AddMapEntry(root, "arch", CreateString("risc-v"));
|
|
432
|
+
AddMapEntry(root, "vendor", CreateString(info.vendor));
|
|
433
|
+
AddMapEntry(root, "microarchitecture", CreateString(info.uarch));
|
|
434
|
+
AddFlags(root, &info.features);
|
|
435
|
+
#endif
|
|
436
|
+
return root;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
int main(int argc, char** argv) {
|
|
440
|
+
BA_Align();
|
|
441
|
+
const Node* const root = CreateTree();
|
|
442
|
+
bool outputJson = false;
|
|
443
|
+
int i = 1;
|
|
444
|
+
for (; i < argc; ++i) {
|
|
445
|
+
const char* arg = argv[i];
|
|
446
|
+
if (strcmp(arg, "-j") == 0 || strcmp(arg, "--json") == 0) {
|
|
447
|
+
outputJson = true;
|
|
448
|
+
} else {
|
|
449
|
+
showUsage(argv[0]);
|
|
450
|
+
if (strcmp(arg, "-h") == 0 || strcmp(arg, "--help") == 0)
|
|
451
|
+
return EXIT_SUCCESS;
|
|
452
|
+
return EXIT_FAILURE;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
if (outputJson)
|
|
456
|
+
printJson(root);
|
|
457
|
+
else
|
|
458
|
+
printTextRoot(root);
|
|
459
|
+
putchar('\n');
|
|
460
|
+
return EXIT_SUCCESS;
|
|
461
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#
|
|
2
|
+
# libraries for tests
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
include_directories(../include)
|
|
6
|
+
add_definitions(-DCPU_FEATURES_TEST)
|
|
7
|
+
|
|
8
|
+
##------------------------------------------------------------------------------
|
|
9
|
+
add_library(string_view ../src/string_view.c)
|
|
10
|
+
##------------------------------------------------------------------------------
|
|
11
|
+
add_library(filesystem_for_testing filesystem_for_testing.cc)
|
|
12
|
+
target_compile_definitions(filesystem_for_testing PUBLIC CPU_FEATURES_MOCK_FILESYSTEM)
|
|
13
|
+
##------------------------------------------------------------------------------
|
|
14
|
+
add_library(hwcaps_for_testing hwcaps_for_testing.cc)
|
|
15
|
+
target_link_libraries(hwcaps_for_testing filesystem_for_testing)
|
|
16
|
+
##------------------------------------------------------------------------------
|
|
17
|
+
add_library(stack_line_reader ../src/stack_line_reader.c)
|
|
18
|
+
target_compile_definitions(stack_line_reader PUBLIC STACK_LINE_READER_BUFFER_SIZE=1024)
|
|
19
|
+
target_link_libraries(stack_line_reader string_view)
|
|
20
|
+
##------------------------------------------------------------------------------
|
|
21
|
+
add_library(stack_line_reader_for_test ../src/stack_line_reader.c)
|
|
22
|
+
target_compile_definitions(stack_line_reader_for_test PUBLIC STACK_LINE_READER_BUFFER_SIZE=16)
|
|
23
|
+
target_link_libraries(stack_line_reader_for_test string_view filesystem_for_testing)
|
|
24
|
+
##------------------------------------------------------------------------------
|
|
25
|
+
add_library(all_libraries ../src/hwcaps.c ../src/stack_line_reader.c)
|
|
26
|
+
target_link_libraries(all_libraries hwcaps_for_testing stack_line_reader string_view)
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# tests
|
|
30
|
+
#
|
|
31
|
+
link_libraries(gtest gmock_main)
|
|
32
|
+
|
|
33
|
+
## bit_utils_test
|
|
34
|
+
add_executable(bit_utils_test bit_utils_test.cc)
|
|
35
|
+
target_link_libraries(bit_utils_test)
|
|
36
|
+
add_test(NAME bit_utils_test COMMAND bit_utils_test)
|
|
37
|
+
##------------------------------------------------------------------------------
|
|
38
|
+
## string_view_test
|
|
39
|
+
add_executable(string_view_test string_view_test.cc ../src/string_view.c)
|
|
40
|
+
target_link_libraries(string_view_test string_view)
|
|
41
|
+
add_test(NAME string_view_test COMMAND string_view_test)
|
|
42
|
+
##------------------------------------------------------------------------------
|
|
43
|
+
## stack_line_reader_test
|
|
44
|
+
add_executable(stack_line_reader_test stack_line_reader_test.cc)
|
|
45
|
+
target_link_libraries(stack_line_reader_test stack_line_reader_for_test)
|
|
46
|
+
add_test(NAME stack_line_reader_test COMMAND stack_line_reader_test)
|
|
47
|
+
##------------------------------------------------------------------------------
|
|
48
|
+
## cpuinfo_x86_test
|
|
49
|
+
if(PROCESSOR_IS_X86)
|
|
50
|
+
add_executable(cpuinfo_x86_test
|
|
51
|
+
cpuinfo_x86_test.cc
|
|
52
|
+
../src/impl_x86_freebsd.c
|
|
53
|
+
../src/impl_x86_linux_or_android.c
|
|
54
|
+
../src/impl_x86_macos.c
|
|
55
|
+
../src/impl_x86_windows.c
|
|
56
|
+
)
|
|
57
|
+
target_compile_definitions(cpuinfo_x86_test PUBLIC CPU_FEATURES_MOCK_CPUID_X86)
|
|
58
|
+
if(APPLE)
|
|
59
|
+
target_compile_definitions(cpuinfo_x86_test PRIVATE HAVE_SYSCTLBYNAME)
|
|
60
|
+
endif()
|
|
61
|
+
target_link_libraries(cpuinfo_x86_test all_libraries)
|
|
62
|
+
add_test(NAME cpuinfo_x86_test COMMAND cpuinfo_x86_test)
|
|
63
|
+
endif()
|
|
64
|
+
##------------------------------------------------------------------------------
|
|
65
|
+
## cpuinfo_arm_test
|
|
66
|
+
if(PROCESSOR_IS_ARM)
|
|
67
|
+
add_executable(cpuinfo_arm_test cpuinfo_arm_test.cc ../src/impl_arm_linux_or_android.c)
|
|
68
|
+
target_link_libraries(cpuinfo_arm_test all_libraries)
|
|
69
|
+
add_test(NAME cpuinfo_arm_test COMMAND cpuinfo_arm_test)
|
|
70
|
+
endif()
|
|
71
|
+
##------------------------------------------------------------------------------
|
|
72
|
+
## cpuinfo_aarch64_test
|
|
73
|
+
if(PROCESSOR_IS_AARCH64)
|
|
74
|
+
add_executable(cpuinfo_aarch64_test
|
|
75
|
+
cpuinfo_aarch64_test.cc
|
|
76
|
+
../src/impl_aarch64_linux_or_android.c
|
|
77
|
+
../src/impl_aarch64_macos_or_iphone.c
|
|
78
|
+
../src/impl_aarch64_windows.c)
|
|
79
|
+
if(APPLE)
|
|
80
|
+
target_compile_definitions(cpuinfo_aarch64_test PUBLIC CPU_FEATURES_MOCK_SYSCTL_AARCH64)
|
|
81
|
+
target_compile_definitions(cpuinfo_aarch64_test PRIVATE HAVE_SYSCTLBYNAME)
|
|
82
|
+
endif()
|
|
83
|
+
target_compile_definitions(cpuinfo_aarch64_test PUBLIC CPU_FEATURES_MOCK_CPUID_AARCH64)
|
|
84
|
+
target_link_libraries(cpuinfo_aarch64_test all_libraries)
|
|
85
|
+
add_test(NAME cpuinfo_aarch64_test COMMAND cpuinfo_aarch64_test)
|
|
86
|
+
endif()
|
|
87
|
+
##------------------------------------------------------------------------------
|
|
88
|
+
## cpuinfo_mips_test
|
|
89
|
+
if(PROCESSOR_IS_MIPS)
|
|
90
|
+
add_executable(cpuinfo_mips_test cpuinfo_mips_test.cc ../src/impl_mips_linux_or_android.c)
|
|
91
|
+
target_link_libraries(cpuinfo_mips_test all_libraries)
|
|
92
|
+
add_test(NAME cpuinfo_mips_test COMMAND cpuinfo_mips_test)
|
|
93
|
+
endif()
|
|
94
|
+
##------------------------------------------------------------------------------
|
|
95
|
+
## cpuinfo_ppc_test
|
|
96
|
+
if(PROCESSOR_IS_POWER)
|
|
97
|
+
add_executable(cpuinfo_ppc_test cpuinfo_ppc_test.cc ../src/impl_ppc_linux.c)
|
|
98
|
+
target_link_libraries(cpuinfo_ppc_test all_libraries)
|
|
99
|
+
add_test(NAME cpuinfo_ppc_test COMMAND cpuinfo_ppc_test)
|
|
100
|
+
endif()
|
|
101
|
+
##------------------------------------------------------------------------------
|
|
102
|
+
## cpuinfo_s390x_test
|
|
103
|
+
if(PROCESSOR_IS_S390X)
|
|
104
|
+
add_executable(cpuinfo_s390x_test cpuinfo_s390x_test.cc ../src/impl_s390x_linux.c)
|
|
105
|
+
target_link_libraries(cpuinfo_s390x_test all_libraries)
|
|
106
|
+
add_test(NAME cpuinfo_s390x_test COMMAND cpuinfo_s390x_test)
|
|
107
|
+
endif()
|
|
108
|
+
##------------------------------------------------------------------------------
|
|
109
|
+
## cpuinfo_riscv_test
|
|
110
|
+
if(PROCESSOR_IS_RISCV)
|
|
111
|
+
add_executable(cpuinfo_riscv_test cpuinfo_riscv_test.cc ../src/impl_riscv_linux.c)
|
|
112
|
+
target_link_libraries(cpuinfo_riscv_test all_libraries)
|
|
113
|
+
add_test(NAME cpuinfo_riscv_test COMMAND cpuinfo_riscv_test)
|
|
114
|
+
endif()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright 2017 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
#include "internal/bit_utils.h"
|
|
16
|
+
|
|
17
|
+
#include "gtest/gtest.h"
|
|
18
|
+
|
|
19
|
+
namespace cpu_features {
|
|
20
|
+
namespace {
|
|
21
|
+
|
|
22
|
+
TEST(UtilsTest, IsBitSet) {
|
|
23
|
+
for (size_t bit_set = 0; bit_set < 32; ++bit_set) {
|
|
24
|
+
const uint32_t value = 1UL << bit_set;
|
|
25
|
+
for (uint32_t i = 0; i < 32; ++i) {
|
|
26
|
+
EXPECT_EQ(IsBitSet(value, i), i == bit_set);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// testing 0, all bits should be 0.
|
|
31
|
+
for (uint32_t i = 0; i < 32; ++i) {
|
|
32
|
+
EXPECT_FALSE(IsBitSet(0, i));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// testing ~0, all bits should be 1.
|
|
36
|
+
for (uint32_t i = 0; i < 32; ++i) {
|
|
37
|
+
EXPECT_TRUE(IsBitSet(-1, i));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
TEST(UtilsTest, ExtractBitRange) {
|
|
42
|
+
// Extracting all bits gives the same number.
|
|
43
|
+
EXPECT_EQ(ExtractBitRange(123, 31, 0), 123);
|
|
44
|
+
// Extracting 1 bit gives parity.
|
|
45
|
+
EXPECT_EQ(ExtractBitRange(123, 0, 0), 1);
|
|
46
|
+
EXPECT_EQ(ExtractBitRange(122, 0, 0), 0);
|
|
47
|
+
|
|
48
|
+
EXPECT_EQ(ExtractBitRange(0xF0, 7, 4), 0xF);
|
|
49
|
+
EXPECT_EQ(ExtractBitRange(0x42 << 2, 10, 2), 0x42);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace
|
|
53
|
+
} // namespace cpu_features
|