From 3b6439d4a3989b693134d273b80876912755a521 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 17 Jan 2025 21:37:32 +0000 Subject: [PATCH] Clean-up: apply suggested clang-tidy auto-fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ib5634578258b91c7a640566d4e50e891b11e4d8d Signed-off-by: Jérémie Galarneau --- .../notification-thread-events.cpp | 11 +- src/bin/lttng/commands/start.cpp | 2 +- src/bin/lttng/loglevel.cpp | 12 +-- src/common/config/session-config.cpp | 2 +- src/common/consumer/consumer.cpp | 2 +- .../filter-visitor-generate-bytecode.cpp | 25 +++-- .../filter/filter-visitor-generate-ir.cpp | 100 +++++++++--------- ...ter-visitor-ir-normalize-glob-patterns.cpp | 4 +- .../filter-visitor-ir-validate-string.cpp | 2 +- src/common/utils.cpp | 2 +- 10 files changed, 80 insertions(+), 82 deletions(-) diff --git a/src/bin/lttng-sessiond/notification-thread-events.cpp b/src/bin/lttng-sessiond/notification-thread-events.cpp index 8933475cb..f3a456f08 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.cpp +++ b/src/bin/lttng-sessiond/notification-thread-events.cpp @@ -217,8 +217,8 @@ static int match_channel_trigger_list(struct cds_lfht_node *node, const void *ke trigger_list = caa_container_of(node, struct lttng_channel_trigger_list, channel_triggers_ht_node); - return !((channel_key->key != trigger_list->channel_key.key) || - (channel_key->domain != trigger_list->channel_key.domain)); + return (channel_key->key == trigger_list->channel_key.key) && + (channel_key->domain == trigger_list->channel_key.domain); } static int match_session_trigger_list(struct cds_lfht_node *node, const void *key) @@ -239,8 +239,7 @@ static int match_channel_state_sample(struct cds_lfht_node *node, const void *ke sample = caa_container_of(node, struct channel_state_sample, channel_state_ht_node); - return !((channel_key->key != sample->key.key) || - (channel_key->domain != sample->key.domain)); + return (channel_key->key == sample->key.key) && (channel_key->domain == sample->key.domain); } static int match_channel_info(struct cds_lfht_node *node, const void *key) @@ -250,8 +249,8 @@ static int match_channel_info(struct cds_lfht_node *node, const void *key) channel_info = caa_container_of(node, struct channel_info, channels_ht_node); - return !((channel_key->key != channel_info->key.key) || - (channel_key->domain != channel_info->key.domain)); + return (channel_key->key == channel_info->key.key) && + (channel_key->domain == channel_info->key.domain); } static int match_trigger(struct cds_lfht_node *node, const void *key) diff --git a/src/bin/lttng/commands/start.cpp b/src/bin/lttng/commands/start.cpp index c4d5d4ee3..897a11292 100644 --- a/src/bin/lttng/commands/start.cpp +++ b/src/bin/lttng/commands/start.cpp @@ -197,7 +197,7 @@ void warn_on_small_client_shm(const char *session_name) * into it. */ auto fd = [CLIENT_SHM_TEST_PATH]() { - int raw_fd = shm_open(CLIENT_SHM_TEST_PATH, O_RDWR | O_CREAT, 0700); + const auto raw_fd = shm_open(CLIENT_SHM_TEST_PATH, O_RDWR | O_CREAT, 0700); if (raw_fd < 0) { LTTNG_THROW_POSIX( lttng::format("Failed to open shared memory at path '%s'", diff --git a/src/bin/lttng/loglevel.cpp b/src/bin/lttng/loglevel.cpp index 1ffd13c98..0f41e20e4 100644 --- a/src/bin/lttng/loglevel.cpp +++ b/src/bin/lttng/loglevel.cpp @@ -337,12 +337,12 @@ bool loglevel_log4j2_parse_range_string(const char *str, enum lttng_loglevel_log4j2 *most_severe) { int least_severe_int, most_severe_int; - bool ret = loglevel_parse_range_string_common(str, - loglevel_log4j2_values, - ARRAY_SIZE(loglevel_log4j2_values), - LTTNG_LOGLEVEL_LOG4J2_FATAL, - &least_severe_int, - &most_severe_int); + const auto ret = loglevel_parse_range_string_common(str, + loglevel_log4j2_values, + ARRAY_SIZE(loglevel_log4j2_values), + LTTNG_LOGLEVEL_LOG4J2_FATAL, + &least_severe_int, + &most_severe_int); *least_severe = (lttng_loglevel_log4j2) least_severe_int; *most_severe = (lttng_loglevel_log4j2) most_severe_int; diff --git a/src/common/config/session-config.cpp b/src/common/config/session-config.cpp index 043b4de07..de491e66f 100644 --- a/src/common/config/session-config.cpp +++ b/src/common/config/session-config.cpp @@ -2780,7 +2780,7 @@ end: static int process_domain_node(xmlNodePtr domain_node, const char *session_name) { int ret; - struct lttng_domain domain{}; + struct lttng_domain domain {}; struct lttng_handle *handle = nullptr; struct lttng_channel *channel = nullptr; xmlNodePtr channels_node = nullptr; diff --git a/src/common/consumer/consumer.cpp b/src/common/consumer/consumer.cpp index c4a0ef364..a98af6a7b 100644 --- a/src/common/consumer/consumer.cpp +++ b/src/common/consumer/consumer.cpp @@ -5043,7 +5043,7 @@ end: enum lttcomm_return_code lttng_consumer_open_channel_packets(struct lttng_consumer_channel *channel) { - enum lttcomm_return_code ret = LTTCOMM_CONSUMERD_SUCCESS; + const auto ret = LTTCOMM_CONSUMERD_SUCCESS; if (channel->metadata_stream) { ERR("Open channel packets command attempted on a metadata channel"); diff --git a/src/common/filter/filter-visitor-generate-bytecode.cpp b/src/common/filter/filter-visitor-generate-bytecode.cpp index 81822137f..1b8f5166a 100644 --- a/src/common/filter/filter-visitor-generate-bytecode.cpp +++ b/src/common/filter/filter-visitor-generate-bytecode.cpp @@ -122,16 +122,15 @@ end: * < 0: error */ static int visit_node_load_expression_legacy(struct filter_parser_ctx *ctx, - const struct ir_load_expression *exp, - const struct ir_load_expression_op *op) + const struct ir_load_expression *exp) { - struct load_op *insn = NULL; - uint32_t insn_len = sizeof(struct load_op) + sizeof(struct field_ref); + struct load_op *insn = nullptr; + const auto insn_len = sizeof(struct load_op) + sizeof(struct field_ref); struct field_ref ref_offset; uint32_t reloc_offset_u32; uint16_t reloc_offset; enum bytecode_op op_type; - char *symbol = NULL; + char *symbol = nullptr; int ret; ret = load_expression_legacy_match(exp, &op_type, &symbol); @@ -192,7 +191,7 @@ static int visit_node_load_expression(struct filter_parser_ctx *ctx, const struc * TODO: if we remove legacy load for application contexts, we * need to update session bytecode parser as well. */ - ret = visit_node_load_expression_legacy(ctx, exp, op); + ret = visit_node_load_expression_legacy(ctx, exp); if (ret < 0) { return ret; } @@ -200,7 +199,7 @@ static int visit_node_load_expression(struct filter_parser_ctx *ctx, const struc return 0; /* legacy */ } - for (; op != NULL; op = op->next) { + for (; op != nullptr; op = op->next) { switch (op->type) { case IR_LOAD_EXPRESSION_GET_CONTEXT_ROOT: { @@ -256,7 +255,7 @@ static int visit_node_load_expression(struct filter_parser_ctx *ctx, const struc case IR_LOAD_EXPRESSION_LOAD_FIELD: { struct load_op *insn; - uint32_t insn_len = sizeof(struct load_op); + const auto insn_len = sizeof(struct load_op); insn = (load_op *) calloc(insn_len, 1); if (!insn) @@ -287,7 +286,7 @@ static int visit_node_load(struct filter_parser_ctx *ctx, struct ir_op *node) case IR_DATA_STRING: { struct load_op *insn; - uint32_t insn_len = + const auto insn_len = sizeof(struct load_op) + strlen(node->u.load.u.string.value) + 1; insn = (load_op *) calloc(insn_len, 1); @@ -327,7 +326,7 @@ static int visit_node_load(struct filter_parser_ctx *ctx, struct ir_op *node) case IR_DATA_NUMERIC: { struct load_op *insn; - uint32_t insn_len = sizeof(struct load_op) + sizeof(struct literal_numeric); + const auto insn_len = sizeof(struct load_op) + sizeof(struct literal_numeric); insn = (load_op *) calloc(insn_len, 1); if (!insn) @@ -341,7 +340,7 @@ static int visit_node_load(struct filter_parser_ctx *ctx, struct ir_op *node) case IR_DATA_FLOAT: { struct load_op *insn; - uint32_t insn_len = sizeof(struct load_op) + sizeof(struct literal_double); + const auto insn_len = sizeof(struct load_op) + sizeof(struct literal_double); insn = (load_op *) calloc(insn_len, 1); if (!insn) @@ -581,12 +580,12 @@ void filter_bytecode_free(struct filter_parser_ctx *ctx) if (ctx->bytecode) { free(ctx->bytecode); - ctx->bytecode = NULL; + ctx->bytecode = nullptr; } if (ctx->bytecode_reloc) { free(ctx->bytecode_reloc); - ctx->bytecode_reloc = NULL; + ctx->bytecode_reloc = nullptr; } } diff --git a/src/common/filter/filter-visitor-generate-ir.cpp b/src/common/filter/filter-visitor-generate-ir.cpp index 9283fc3d1..055ab5fbf 100644 --- a/src/common/filter/filter-visitor-generate-ir.cpp +++ b/src/common/filter/filter-visitor-generate-ir.cpp @@ -32,17 +32,17 @@ static struct ir_op *make_op_root(struct ir_op *child, enum ir_side side) op = zmalloc(); if (!op) - return NULL; + return nullptr; switch (child->data_type) { case IR_DATA_UNKNOWN: default: fprintf(stderr, "[error] Unknown root child data type\n"); free(op); - return NULL; + return nullptr; case IR_DATA_STRING: fprintf(stderr, "[error] String cannot be root data type\n"); free(op); - return NULL; + return nullptr; case IR_DATA_NUMERIC: case IR_DATA_FIELD_REF: case IR_DATA_GET_CONTEXT_REF: @@ -79,7 +79,7 @@ static struct ir_op *make_op_load_string(const char *string, enum ir_side side) op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_LOAD; op->data_type = IR_DATA_STRING; op->signedness = IR_SIGN_UNKNOWN; @@ -88,7 +88,7 @@ static struct ir_op *make_op_load_string(const char *string, enum ir_side side) op->u.load.u.string.value = strdup(string); if (!op->u.load.u.string.value) { free(op); - return NULL; + return nullptr; } return op; } @@ -99,7 +99,7 @@ static struct ir_op *make_op_load_numeric(int64_t v, enum ir_side side) op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_LOAD; op->data_type = IR_DATA_NUMERIC; /* TODO: for now, all numeric values are signed */ @@ -115,7 +115,7 @@ static struct ir_op *make_op_load_float(double v, enum ir_side side) op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_LOAD; op->data_type = IR_DATA_FLOAT; op->signedness = IR_SIGN_UNKNOWN; @@ -183,10 +183,10 @@ static struct ir_load_expression *create_load_expression(struct filter_node *nod /* Get forward chain. */ node = load_expression_get_forward_chain(node); if (!node) - return NULL; + return nullptr; load_exp = zmalloc(); if (!load_exp) - return NULL; + return nullptr; /* Root */ load_exp_op = zmalloc(); @@ -231,7 +231,7 @@ static struct ir_load_expression *create_load_expression(struct filter_node *nod goto error; /* Explore brackets from current node. */ - for (bracket_node = node->u.expression.next_bracket; bracket_node != NULL; + for (bracket_node = node->u.expression.next_bracket; bracket_node != nullptr; bracket_node = bracket_node->u.expression.next_bracket) { prev_op = load_exp_op; if (bracket_node->type != NODE_EXPRESSION || @@ -264,7 +264,7 @@ static struct ir_load_expression *create_load_expression(struct filter_node *nod error: free_load_expression(load_exp); - return NULL; + return nullptr; } static struct ir_op *make_op_load_expression(struct filter_node *node, enum ir_side side) @@ -273,7 +273,7 @@ static struct ir_op *make_op_load_expression(struct filter_node *node, enum ir_s op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_LOAD; op->data_type = IR_DATA_EXPRESSION; op->signedness = IR_SIGN_DYN; @@ -287,7 +287,7 @@ static struct ir_op *make_op_load_expression(struct filter_node *node, enum ir_s error: free_load_expression(op->u.load.u.expression); free(op); - return NULL; + return nullptr; } static struct ir_op *make_op_unary(enum unary_op_type unary_op_type, @@ -296,7 +296,7 @@ static struct ir_op *make_op_unary(enum unary_op_type unary_op_type, struct ir_op *child, enum ir_side side) { - struct ir_op *op = NULL; + struct ir_op *op = nullptr; if (child->data_type == IR_DATA_STRING) { fprintf(stderr, @@ -307,7 +307,7 @@ static struct ir_op *make_op_unary(enum unary_op_type unary_op_type, op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_UNARY; op->data_type = child->data_type; op->signedness = signedness; @@ -318,7 +318,7 @@ static struct ir_op *make_op_unary(enum unary_op_type unary_op_type, error: free(op); - return NULL; + return nullptr; } /* @@ -350,7 +350,7 @@ static struct ir_op *make_op_binary_compare(enum op_type bin_op_type, struct ir_op *right, enum ir_side side) { - struct ir_op *op = NULL; + struct ir_op *op = nullptr; if (left->data_type == IR_DATA_UNKNOWN || right->data_type == IR_DATA_UNKNOWN) { fprintf(stderr, "[error] binary operation '%s' has unknown operand type\n", op_str); @@ -366,7 +366,7 @@ static struct ir_op *make_op_binary_compare(enum op_type bin_op_type, op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_BINARY; op->u.binary.type = bin_op_type; op->u.binary.left = left; @@ -381,7 +381,7 @@ static struct ir_op *make_op_binary_compare(enum op_type bin_op_type, error: free(op); - return NULL; + return nullptr; } static struct ir_op *make_op_binary_eq(struct ir_op *left, struct ir_op *right, enum ir_side side) @@ -420,7 +420,7 @@ static struct ir_op *make_op_binary_logical(enum op_type bin_op_type, struct ir_op *right, enum ir_side side) { - struct ir_op *op = NULL; + struct ir_op *op = nullptr; if (left->data_type == IR_DATA_UNKNOWN || right->data_type == IR_DATA_UNKNOWN) { fprintf(stderr, "[error] binary operation '%s' has unknown operand type\n", op_str); @@ -435,7 +435,7 @@ static struct ir_op *make_op_binary_logical(enum op_type bin_op_type, op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_LOGICAL; op->u.binary.type = bin_op_type; op->u.binary.left = left; @@ -450,7 +450,7 @@ static struct ir_op *make_op_binary_logical(enum op_type bin_op_type, error: free(op); - return NULL; + return nullptr; } static struct ir_op *make_op_binary_bitwise(enum op_type bin_op_type, @@ -459,7 +459,7 @@ static struct ir_op *make_op_binary_bitwise(enum op_type bin_op_type, struct ir_op *right, enum ir_side side) { - struct ir_op *op = NULL; + struct ir_op *op = nullptr; if (left->data_type == IR_DATA_UNKNOWN || right->data_type == IR_DATA_UNKNOWN) { fprintf(stderr, @@ -482,7 +482,7 @@ static struct ir_op *make_op_binary_bitwise(enum op_type bin_op_type, op = zmalloc(); if (!op) - return NULL; + return nullptr; op->op = IR_OP_BINARY; op->u.binary.type = bin_op_type; op->u.binary.left = left; @@ -497,7 +497,7 @@ static struct ir_op *make_op_binary_bitwise(enum op_type bin_op_type, error: free(op); - return NULL; + return nullptr; } static struct ir_op * @@ -591,7 +591,7 @@ make_expression(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir case AST_EXP_UNKNOWN: default: fprintf(stderr, "[error] %s: unknown expression type\n", __func__); - return NULL; + return nullptr; case AST_EXP_STRING: return make_op_load_string(node->u.expression.u.string, side); @@ -610,14 +610,14 @@ make_expression(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir static struct ir_op * make_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_side side) { - struct ir_op *op = NULL, *lchild, *rchild; + struct ir_op *op = nullptr, *lchild, *rchild; const char *op_str = "?"; switch (node->u.op.type) { case AST_OP_UNKNOWN: default: fprintf(stderr, "[error] %s: unknown binary op type\n", __func__); - return NULL; + return nullptr; /* * The following binary operators other than comparators and @@ -646,11 +646,11 @@ make_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_side si case AST_OP_BIT_XOR: lchild = generate_ir_recursive(ctx, node->u.op.lchild, IR_LEFT); if (!lchild) - return NULL; + return nullptr; rchild = generate_ir_recursive(ctx, node->u.op.rchild, IR_RIGHT); if (!rchild) { filter_free_ir_recursive(lchild); - return NULL; + return nullptr; } break; @@ -662,11 +662,11 @@ make_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_side si case AST_OP_LE: lchild = generate_ir_recursive(ctx, node->u.op.lchild, IR_LEFT); if (!lchild) - return NULL; + return nullptr; rchild = generate_ir_recursive(ctx, node->u.op.rchild, IR_RIGHT); if (!rchild) { filter_free_ir_recursive(lchild); - return NULL; + return nullptr; } break; @@ -678,11 +678,11 @@ make_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_side si */ lchild = generate_ir_recursive(ctx, node->u.op.lchild, IR_LEFT); if (!lchild) - return NULL; + return nullptr; rchild = generate_ir_recursive(ctx, node->u.op.rchild, IR_LEFT); if (!rchild) { filter_free_ir_recursive(lchild); - return NULL; + return nullptr; } break; } @@ -739,7 +739,7 @@ make_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_side si error_not_supported: fprintf(stderr, "[error] %s: binary operation '%s' not supported\n", __func__, op_str); - return NULL; + return nullptr; } static struct ir_op * @@ -749,7 +749,7 @@ make_unary_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_s case AST_UNARY_UNKNOWN: default: fprintf(stderr, "[error] %s: unknown unary op type\n", __func__); - return NULL; + return nullptr; case AST_UNARY_PLUS: { @@ -757,11 +757,11 @@ make_unary_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_s child = generate_ir_recursive(ctx, node->u.unary_op.child, side); if (!child) - return NULL; + return nullptr; op = make_op_unary_plus(child, side); if (!op) { filter_free_ir_recursive(child); - return NULL; + return nullptr; } return op; } @@ -771,11 +771,11 @@ make_unary_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_s child = generate_ir_recursive(ctx, node->u.unary_op.child, side); if (!child) - return NULL; + return nullptr; op = make_op_unary_minus(child, side); if (!op) { filter_free_ir_recursive(child); - return NULL; + return nullptr; } return op; } @@ -785,11 +785,11 @@ make_unary_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_s child = generate_ir_recursive(ctx, node->u.unary_op.child, side); if (!child) - return NULL; + return nullptr; op = make_op_unary_not(child, side); if (!op) { filter_free_ir_recursive(child); - return NULL; + return nullptr; } return op; } @@ -799,17 +799,17 @@ make_unary_op(struct filter_parser_ctx *ctx, struct filter_node *node, enum ir_s child = generate_ir_recursive(ctx, node->u.unary_op.child, side); if (!child) - return NULL; + return nullptr; op = make_op_unary_bit_not(child, side); if (!op) { filter_free_ir_recursive(child); - return NULL; + return nullptr; } return op; } } - return NULL; + return nullptr; } static struct ir_op * @@ -819,7 +819,7 @@ generate_ir_recursive(struct filter_parser_ctx *ctx, struct filter_node *node, e case NODE_UNKNOWN: default: fprintf(stderr, "[error] %s: unknown node type\n", __func__); - return NULL; + return nullptr; case NODE_ROOT: { @@ -827,11 +827,11 @@ generate_ir_recursive(struct filter_parser_ctx *ctx, struct filter_node *node, e child = generate_ir_recursive(ctx, node->u.root.child, side); if (!child) - return NULL; + return nullptr; op = make_op_root(child, side); if (!op) { filter_free_ir_recursive(child); - return NULL; + return nullptr; } return op; } @@ -842,13 +842,13 @@ generate_ir_recursive(struct filter_parser_ctx *ctx, struct filter_node *node, e case NODE_UNARY_OP: return make_unary_op(ctx, node, side); } - return 0; + return nullptr; } void filter_ir_free(struct filter_parser_ctx *ctx) { filter_free_ir_recursive(ctx->ir_root); - ctx->ir_root = NULL; + ctx->ir_root = nullptr; } int filter_visitor_ir_generate(struct filter_parser_ctx *ctx) diff --git a/src/common/filter/filter-visitor-ir-normalize-glob-patterns.cpp b/src/common/filter/filter-visitor-ir-normalize-glob-patterns.cpp index 517bd5128..beccd2f7f 100644 --- a/src/common/filter/filter-visitor-ir-normalize-glob-patterns.cpp +++ b/src/common/filter/filter-visitor-ir-normalize-glob-patterns.cpp @@ -36,7 +36,7 @@ static int normalize_glob_patterns(struct ir_op *node) case IR_OP_LOAD: { if (node->data_type == IR_DATA_STRING) { - enum ir_load_string_type type = node->u.load.u.string.type; + const auto type = node->u.load.u.string.type; if (type == IR_LOAD_STRING_TYPE_GLOB_STAR_END || type == IR_LOAD_STRING_TYPE_GLOB_STAR) { LTTNG_ASSERT(node->u.load.u.string.value); @@ -50,7 +50,7 @@ static int normalize_glob_patterns(struct ir_op *node) return normalize_glob_patterns(node->u.unary.child); case IR_OP_BINARY: { - int ret = normalize_glob_patterns(node->u.binary.left); + const auto ret = normalize_glob_patterns(node->u.binary.left); if (ret) return ret; diff --git a/src/common/filter/filter-visitor-ir-validate-string.cpp b/src/common/filter/filter-visitor-ir-validate-string.cpp index fd1feeed6..d976a15e5 100644 --- a/src/common/filter/filter-visitor-ir-validate-string.cpp +++ b/src/common/filter/filter-visitor-ir-validate-string.cpp @@ -95,7 +95,7 @@ static int validate_string(struct ir_op *node) return validate_string(node->u.unary.child); case IR_OP_BINARY: { - int ret = validate_string(node->u.binary.left); + const auto ret = validate_string(node->u.binary.left); if (ret) return ret; diff --git a/src/common/utils.cpp b/src/common/utils.cpp index 288840445..c3c8b5874 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -1408,7 +1408,7 @@ unsigned int get_max_possible_cpu_id() LTTNG_MAY_THROW } auto possible_cpu_mask_fd = [] { - int raw_handle = open(DEFAULT_LINUX_POSSIBLE_CPU_PATH, O_RDONLY); + const auto raw_handle = open(DEFAULT_LINUX_POSSIBLE_CPU_PATH, O_RDONLY); if (raw_handle < 0) { LTTNG_THROW_POSIX( lttng::format("Failed to open possible CPU file, path='{}'", -- 2.39.5