1# Copyright 2023 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://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, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15config PIGWEED_LOG_TOKENIZED_LEVEL_BITS 16 int "Number of bits required to present the log level" 17 default 3 18 help 19 The total representation size of the metadata is the sum of 20 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LEVEL_BITS`` 21 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LINE_BITS`` 22 - ``CONFIG_PIGWEED_LOG_TOKENIZED_FLAG_BITS`` 23 - ``CONFIG_PIGWEED_LOG_TOKENIZED_MODULE_BITS`` 24 25config PIGWEED_LOG_TOKENIZED_LINE_BITS 26 int "Number of bits required to present the log line number" 27 default 11 28 help 29 The total representation size of the metadata is the sum of 30 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LEVEL_BITS`` 31 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LINE_BITS`` 32 - ``CONFIG_PIGWEED_LOG_TOKENIZED_FLAG_BITS`` 33 - ``CONFIG_PIGWEED_LOG_TOKENIZED_MODULE_BITS`` 34 35config PIGWEED_LOG_TOKENIZED_FLAG_BITS 36 int "Number of bits required for implementation-defined flags" 37 default 2 38 help 39 The total representation size of the metadata is the sum of 40 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LEVEL_BITS`` 41 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LINE_BITS`` 42 - ``CONFIG_PIGWEED_LOG_TOKENIZED_FLAG_BITS`` 43 - ``CONFIG_PIGWEED_LOG_TOKENIZED_MODULE_BITS`` 44 45config PIGWEED_LOG_TOKENIZED_MODULE_BITS 46 int "Number of bits required for logging the PW_LOG_MODULE_NAME" 47 default 16 48 help 49 The total representation size of the metadata is the sum of 50 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LEVEL_BITS`` 51 - ``CONFIG_PIGWEED_LOG_TOKENIZED_LINE_BITS`` 52 - ``CONFIG_PIGWEED_LOG_TOKENIZED_FLAG_BITS`` 53 - ``CONFIG_PIGWEED_LOG_TOKENIZED_MODULE_BITS`` 54