From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 97C656EFDA; Wed, 11 May 2022 11:27:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 97C656EFDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1652257647; bh=2CL7ob7OZpk/QuWJo4tiR/4VOSMeu17i6H3kvDz0TiY=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=rHCZHoj8go8PpaHhVYg2kyGj6orQlfYlxVc8NvcOQ6aTg0lmxqxTQ349A6M9OIhC3 KVRUnnGLE7vNN45NH8Fdke+qoJK8TO404VTlEkQF55gDmDjz4vRdUrKHDh5DyLnoj4 By7FcxsgBfNDp+lzsVoiPQzL2G4z462RlYXqMIXc= Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D15FE6F85D for ; Wed, 11 May 2022 11:25:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D15FE6F85D Received: by mail-lf1-f48.google.com with SMTP id j4so2206335lfh.8 for ; Wed, 11 May 2022 01:25:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mkCBTZjBXNyuXye4RRxsjpZXXNwhvFxztO6mQKMXrMI=; b=P7UBRsmRwr1m52Xmeovm2ZEA14BcJIS/naIio7GWdHWt391UfnSIP7X4jtEKfRHjzZ 8uLUovSRvN98SlyEzSbB+5KzBiQ8z+4StkxDMsZpJ/OBAD1IT3TlAF7nRgRpgFzO7MzO 4edSLrigrMI7zfO9Z1p7jio1w+TcdiZCtfDP2B2rsU7SnFigmAClN8bME2fZHvcep7Rc YfTo6QD/A3O6Gmt8RSIjAm63uMzwiWeHqKdyoLWrMUS288o8gKSLPn2GxG6b8pDtqttx jhkSv1OOUn1dGOLNsWwX9hpl9ZpJH4AJULdYoQpNuKubikoJ+wJgSn6YWrbnVLCoDVOO okpw== X-Gm-Message-State: AOAM530HCEfNymXefpMx+ewhaFHBA3VWOzyGs+p8H4FAb9VL/h5hPQc4 plGUARWXXjQ0ISBFpseFqXu8l5+aM052pA== X-Google-Smtp-Source: ABdhPJzrnnv+QDoTGJjG+GkiEr9N3E/hu8LLfZAT/6tIiIfmPyD61oxSSLITkT3hcLdpn2LkT62wZg== X-Received: by 2002:a05:6512:1150:b0:474:15cb:a659 with SMTP id m16-20020a056512115000b0047415cba659mr14240651lfg.23.1652257530393; Wed, 11 May 2022 01:25:30 -0700 (PDT) Received: from localhost.localdomain ([93.175.11.199]) by smtp.gmail.com with ESMTPSA id 20-20020ac25f54000000b0047255d21167sm174724lfz.150.2022.05.11.01.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 01:25:30 -0700 (PDT) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Wed, 11 May 2022 11:25:21 +0300 Message-Id: <20220511082521.389687-5-m.kokryashkin@tarantool.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220511082521.389687-1-m.kokryashkin@tarantool.org> References: <20220511082521.389687-1-m.kokryashkin@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH] sysprof: make sysprof internal API funcs static X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Maxim Kokryashkin via Tarantool-patches Reply-To: Maxim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Make sysprof internal Lua API functions static to avoid their exposure. Part of tarantool/tarantool#781 --- Branch: https://github.com/tarantool/luajit/tree/fckxorg/sysprof-rc-full-ci src/lib_misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib_misc.c b/src/lib_misc.c index 370307a7..01dc1bea 100644 --- a/src/lib_misc.c +++ b/src/lib_misc.c @@ -162,7 +162,7 @@ static int on_stop_cb_default(void *opt, uint8_t *buf) #define SYSPROF_DEFAULT_INTERVAL 10 #define SYSPROF_DEFAULT_OUTPUT "sysprof.bin" -int set_output_path(const char *path, struct luam_Sysprof_Options *opt) { +static int set_output_path(const char *path, struct luam_Sysprof_Options *opt) { struct profile_ctx *ctx = opt->ctx; int fd = 0; lua_assert(path != NULL); @@ -174,7 +174,7 @@ int set_output_path(const char *path, struct luam_Sysprof_Options *opt) { return PROFILE_SUCCESS; } -int parse_sysprof_opts(lua_State *L, struct luam_Sysprof_Options *opt, int idx) { +static int parse_sysprof_opts(lua_State *L, struct luam_Sysprof_Options *opt, int idx) { GCtab *options = lj_lib_checktab(L, idx); /* Get profiling mode. */ @@ -248,7 +248,7 @@ int parse_sysprof_opts(lua_State *L, struct luam_Sysprof_Options *opt, int idx) return PROFILE_SUCCESS; } -int parse_options(lua_State *L, struct luam_Sysprof_Options *opt) +static int parse_options(lua_State *L, struct luam_Sysprof_Options *opt) { if (lua_gettop(L) != 1) return PROFILE_ERRUSE; @@ -259,7 +259,7 @@ int parse_options(lua_State *L, struct luam_Sysprof_Options *opt) return parse_sysprof_opts(L, opt, 1); } -int sysprof_error(lua_State *L, int status) +static int sysprof_error(lua_State *L, int status) { switch (status) { case PROFILE_ERRUSE: -- 2.35.1