From patchwork Sun Sep 3 10:20:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Yanitskiy X-Patchwork-Id: 809250 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.osmocom.org (client-ip=144.76.43.76; helo=lists.osmocom.org; envelope-from=openbsc-bounces@lists.osmocom.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uVWAB1UV"; dkim-atps=neutral Received: from lists.osmocom.org (lists.osmocom.org [144.76.43.76]) by ozlabs.org (Postfix) with ESMTP id 3xlTYG1QY0z9sRW for ; Sun, 3 Sep 2017 20:21:54 +1000 (AEST) Received: from lists.osmocom.org (lists.osmocom.org [144.76.43.76]) by lists.osmocom.org (Postfix) with ESMTP id 9992920232; Sun, 3 Sep 2017 10:21:47 +0000 (UTC) Authentication-Results: lists.osmocom.org; dmarc=none header.from=gmail.com Authentication-Results: lists.osmocom.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=uVWAB1UV X-Original-To: openbsc@lists.osmocom.org Delivered-To: openbsc@lists.osmocom.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4010:c07::242; helo=mail-lf0-x242.google.com; envelope-from=axilirator@gmail.com; receiver=openbsc@lists.osmocom.org Authentication-Results: lists.osmocom.org; dmarc=pass header.from=gmail.com Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) by lists.osmocom.org (Postfix) with ESMTP id 731552021A for ; Sun, 3 Sep 2017 10:20:23 +0000 (UTC) Received: by mail-lf0-x242.google.com with SMTP id y15so2159108lfd.0 for ; Sun, 03 Sep 2017 03:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UpLMpLF2TamuuNoVqma/okfxF1eucZtPULPNl8aY2nU=; b=uVWAB1UVyPQ85V0sfq4NeOwusbfkJcEtQ6hlzFGPP4yjvxF3P/uNIS0QickMUQdzbJ ntSmFrVt4ZDLRZmzgNcRdiJHurBRtyT1bzqoYI7znIQv29Dxv3jXbCfeBlT/WM6vjuGc x+nhzYAhSDa3Aj/XOgI2gZ6qdZ1pBVSbgENajQRZ4tIPHwdKmey3Aj5+SXiLSFQWMKja zk6mx9svz9fvqr8a7hd5a2IEr3q7QcQlq80fSAUsGTwmUujVYzceUzsWvVMq0Jopp7Fk nagMJOFu4EL3B6EAx2UNmNHCszpGvf8JjH9Nqo9/jojyQEUuVhe7mk4uPNQaXIc4+tdY 2jaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UpLMpLF2TamuuNoVqma/okfxF1eucZtPULPNl8aY2nU=; b=sHsiCtmriJF/tqMRcqixobu54xBS8K5QZtHYor/Z8vOWqKEMTGWcYk5qH8Z+fWjG5R AQLdI6zTx392HeqQZsHeDKIcpYUE6HTyYvrH4wCE8CfTxIISFxWEDXdkjQq0P9rIQp6S f5a9qG8ISXwLgU/0uR/rMmTN/YccKE3ZLFm5LsfCnLPPd2avjeQjbAvap6rtmPmXFzHX G38jLEeZ8xmyJK8PIo1BL26JBQP34pVDVSjZ8iBzUC7OEh4QN3DHkk64y1OxLIz228YE zn31KlX8OGToXz80aLSZ31g1ZrTBBvcz2yAtf2uzXE/hgfK6myIafYPmyMF+LTGiml/Y Zlnw== X-Gm-Message-State: AHPjjUgIno0s0K+fr69+64G4c3bMTpTZEsmZwDzf+eEz0+naci81gV2i tNPIqN9+vmCrLHQrdeQ= X-Google-Smtp-Source: ADKCNb6VJ0SY+Bu788jABaG0EkrbjfNMFl6wFKDHrGMPSirFBp8Ckua1g/g+8ZL34/942d3ZXiLdhg== X-Received: by 10.25.152.205 with SMTP id a196mr2704851lfe.227.1504434022694; Sun, 03 Sep 2017 03:20:22 -0700 (PDT) Received: from DELL.lan ([92.127.181.248]) by smtp.gmail.com with ESMTPSA id 207sm663641lfb.12.2017.09.03.03.20.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Sep 2017 03:20:22 -0700 (PDT) From: Vadim Yanitskiy To: openbsc@lists.osmocom.org Subject: [PATCH] Fix BENCHMARK_STOP call for AMR and FR Date: Sun, 3 Sep 2017 17:20:08 +0700 Message-Id: <20170903102008.13414-1-axilirator@gmail.com> X-Mailer: git-send-email 2.14.1 X-BeenThere: openbsc@lists.osmocom.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of OpenBSC, OsmoBSC, OsmoNITB, OsmoCSCN" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: axilirator@gmail.com Errors-To: openbsc-bounces@lists.osmocom.org Sender: "OpenBSC" --- src/codec_amr.c | 4 ++-- src/codec_fr.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/codec_amr.c b/src/codec_amr.c index 4aae733..ca614ed 100644 --- a/src/codec_amr.c +++ b/src/codec_amr.c @@ -78,7 +78,7 @@ codec_amr_encode(void *state, uint8_t *cod, const uint8_t *pcm, unsigned int pcm (unsigned char*) cod, 1 ); - BENCHMARK_STOP(CODEC_EFR, 1); + BENCHMARK_STOP(CODEC_AMR, 1); return rv; } @@ -95,7 +95,7 @@ codec_amr_decode(void *state, uint8_t *pcm, const uint8_t *cod, unsigned int cod (short *) pcm, 0 ); - BENCHMARK_STOP(CODEC_EFR, 0); + BENCHMARK_STOP(CODEC_AMR, 0); return PCM_CANON_LEN; } diff --git a/src/codec_fr.c b/src/codec_fr.c index 2ce44b4..917f34b 100644 --- a/src/codec_fr.c +++ b/src/codec_fr.c @@ -74,7 +74,7 @@ codec_fr_decode(void *state, uint8_t *pcm, const uint8_t *cod, unsigned int cod_ memcpy(cod_b, cod, FR_CANON_LEN); BENCHMARK_START; rc = gsm_decode(gh, (gsm_byte*)cod_b, (gsm_signal*)pcm); - BENCHMARK_STOP(CODEC_FR, 1); + BENCHMARK_STOP(CODEC_FR, 0); if (rc < 0) return rc; return PCM_CANON_LEN;