From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from integral2.. (unknown [36.81.65.188]) by gnuweeb.org (Postfix) with ESMTPSA id 9227B80216; Sun, 3 Jul 2022 12:00:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1656849631; bh=w5s6oUerDDFvYFFlLAPyXpc38jkhxolT3M5gD97Lyaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MulVqdwUVTWGEfl1Tq6ISM5cNRl0fCJiOaNI6aA3N+WlXpv2JR1nj736EWL6KKTIn edSyFNgqMD0ziZG0yBiCkXGI8k5gBE5J4rLXbz+Mj2XExycCPuY0MSOwCV0ftAI7uM VWGtkcpjc0L6IjVhTfcofArmcAeTDSD3CfYtdSFY4ecOaDYgakSjHG3xRIwjzBxGBG 8lsj1/8GXh1KxBmQqSu5zYyjuLr4I/O4keKKPlif39T1Wad+GOWOK488U7U90JjNU4 Bw0aoQIjlLXz2f9wZad496F/RNcu0UIL9imWMAe9LrIEn/3SnqxUlCtmhRQfPYnFV6 +TdBs3xbcQjhw== From: Ammar Faizi To: Jens Axboe Cc: Ammar Faizi , Alviro Iskandar Setiawan , Fernanda Ma'rouf , Hao Xu , Pavel Begunkov , io-uring Mailing List , GNU/Weeb Mailing List Subject: [PATCH liburing v1 1/2] lib: Add __hot and __cold macros Date: Sun, 3 Jul 2022 18:59:11 +0700 Message-Id: <20220703115240.215695-2-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220703115240.215695-1-ammar.faizi@intel.com> References: <20220703115240.215695-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi A prep patch. These macros will be used to annotate hot and cold functions. Currently, the __hot macro is not used, we will only use the __cold macro at the moment. Signed-off-by: Ammar Faizi --- src/lib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.h b/src/lib.h index 5844cd2..89a40f2 100644 --- a/src/lib.h +++ b/src/lib.h @@ -34,6 +34,8 @@ #endif #define __maybe_unused __attribute__((__unused__)) +#define __hot __attribute__((__hot__)) +#define __cold __attribute__((__cold__)) void *__uring_malloc(size_t len); void __uring_free(void *p); -- Ammar Faizi