Browse Source

stoat

tags/1.9.6
falkTX 9 years ago
parent
commit
4948f51366
4 changed files with 17 additions and 3 deletions
  1. +8
    -0
      Makefile
  2. +7
    -0
      source/Makefile.mk
  3. +2
    -2
      source/backend/engine/CarlaEngineJack.cpp
  4. +0
    -1
      source/backend/plugin/CarlaPluginInternal.cpp

+ 8
- 0
Makefile View File

@@ -385,6 +385,14 @@ debug:
doxygen:
$(MAKE) doxygen -C source/backend

stoat:
stoat --recursive ./build/ --suppression ./data/stoat-supression.txt --whitelist ./data/stoat-whitelist.txt --graph-view ./data/stoat-callgraph.png

# stoat --recursive ./build/ \
# --suppression ./data/stoat-supression.txt \
# --whitelist ./data/stoat-whitelist.txt \
# --graph-view ./data/stoat-callgraph.png

# ----------------------------------------------------------------------------------------------------------------------------

install:


+ 7
- 0
source/Makefile.mk View File

@@ -94,6 +94,13 @@ ifneq ($(WIN32),true)
BASE_FLAGS += -fPIC -DPIC
endif

ifeq ($(STOAT),true)
CC = clang
CXX = clang++
BASE_FLAGS += -emit-llvm
BASE_OPTS += -O0
endif

ifeq ($(DEBUG),true)
BASE_FLAGS += -DDEBUG -O0 -g
ifeq ($(WIN32),true)


+ 2
- 2
source/backend/engine/CarlaEngineJack.cpp View File

@@ -2083,7 +2083,7 @@ private:
handlePtr->handleJackFreewheelCallback(bool(starting));
}

static int __cdecl carla_jack_process_callback(jack_nframes_t nframes, void* arg)
static int __cdecl carla_jack_process_callback(jack_nframes_t nframes, void* arg) __attribute__((annotate("realtime")))
{
handlePtr->handleJackProcessCallback(nframes);
return 0;
@@ -2134,7 +2134,7 @@ private:
// -------------------------------------------------------------------

#ifndef BUILD_BRIDGE
static int __cdecl carla_jack_process_callback_plugin(jack_nframes_t nframes, void* arg)
static int __cdecl carla_jack_process_callback_plugin(jack_nframes_t nframes, void* arg) __attribute__((annotate("realtime")))
{
CarlaPlugin* const plugin((CarlaPlugin*)arg);
CARLA_SAFE_ASSERT_RETURN(plugin != nullptr && plugin->isEnabled(), 0);


+ 0
- 1
source/backend/plugin/CarlaPluginInternal.cpp View File

@@ -27,7 +27,6 @@ CARLA_BACKEND_START_NAMESPACE
// Fallback data

static const MidiProgramData kMidiProgramDataNull = { 0, 0, nullptr };
static const CustomData kCustomDataFallback = { nullptr, nullptr, nullptr };
static /* */ CustomData kCustomDataFallbackNC = { nullptr, nullptr, nullptr };

// -----------------------------------------------------------------------


Loading…
Cancel
Save