Skip to content

Igzip - fix pr#53 merge conflict#62

Merged
asonje merged 2 commits into
intel:igzipfrom
asonje:igzip
Jul 16, 2026
Merged

Igzip - fix pr#53 merge conflict#62
asonje merged 2 commits into
intel:igzipfrom
asonje:igzip

Conversation

@asonje

@asonje asonje commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

fix merge conflict

asonje and others added 2 commits May 8, 2026 13:58
…ntel#56)

* Adds test to validate log_stats_samples config

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* Reduces excessive error logging in QAT mode

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* Bugfix for the log stream

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* Treats QPL_STS_MORE_OUTPUT_NEEDED as a non error condition for IAA

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* Fixed formatting

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* - Modifies iaa behavior so that when QPL_STS_MORE_OUTPUT_NEEDED is
returned eos isnt erronously set.

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* -Adds proper formatting

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* logging: add LOG_DEBUG level; qat: map log level to QATzip log level

Introduce LOG_DEBUG (value=1) as the most verbose log level, shifting
LOG_INFO to 2 and LOG_ERROR to 3. This follows the conventional ordering
used by syslog, Log4j, Python logging, and QATzip itself (where higher
values mean more verbose).

The default log level remains LOG_ERROR (now value=3), so existing
deployments see no behavioral change unless they explicitly set a lower
value in /etc/zlib-accel.conf.

The config parser max for log_level is updated from 2 to 3 accordingly.

In qat.cpp, replace the hardcoded qzSetLogLevel(LOG_NONE) with a dynamic
mapping from the configured log_level:
  LOG_DEBUG -> LOG_DEBUG3  (maximum QATzip verbosity)
  LOG_INFO  -> LOG_INFO
  LOG_ERROR -> LOG_ERROR
  default   -> LOG_NONE

This corrects an inversion present in PR intel#55 of intel/zlib-accel, where
LOG_ERROR was incorrectly mapped to LOG_DEBUG3.

New tests: LogDebugLevel, LogDebugFilteredByInfo; LogLevelFiltering
extended to cover DEBUG filtering.

Builds on: intel#55
Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* Update README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* qat: gate qzSetLogLevel mapping behind DEBUG_LOG; apply formatting

Without the DEBUG_LOG guard, a release build (DEBUG_LOG=OFF) with a
non-zero log_level in the config would cause QATzip to emit verbose
output, contradicting the documented behaviour that log_level only
applies when built with DEBUG_LOG=ON.

Gate the dynamic mapping behind #ifdef DEBUG_LOG and unconditionally
set LOG_NONE in the else branch, matching the original behaviour for
non-debug builds.

Addresses Copilot review comment on PR intel#56.

Signed-off-by: Olasoji <olasoji.denloye@intel.com>

* address review comments: enum ordering, call_once, explicit LOG_NONE case

- logging.h: reorder LogLevel enum to match QATzip's QzLogLevel_T convention
  {LOG_NONE=0, LOG_ERROR=1, LOG_INFO=2, LOG_DEBUG=3}; flip filter direction
  from 'level < config' to 'level > config' so higher values = more verbose.
  Apply same fix to PrintDeflateBlockHeader.
- qat.cpp: call qzSetLogLevel once per process via std::call_once instead of
  per session; add explicit case LogLevel::LOG_NONE; move default to end with
  comment; restructure #ifdef to be inside the once lambda.
- config/config.cpp, config/default_config: update default log_level from 3
  to 1 (LOG_ERROR = errors only, matching previous error-only default).
- README.md: update log_level documentation to describe new ordering.
- tests/zlib_accel_test.cpp: update expected log_level default to 1.

---------

Signed-off-by: Olasoji <olasoji.denloye@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@asonje asonje self-assigned this Jul 15, 2026
@asonje
asonje requested a review from matt-welch July 15, 2026 21:32

@matt-welch matt-welch left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #62 builds cleanly and all 3220 tests pass.

@asonje
asonje merged commit a7856f9 into intel:igzip Jul 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants