alsa-project / snd-firewire-ctl-services

A set of server programs for audio and music units on IEEE 1394 bus supported by Linux sound subsystem a.k.a. ALSA.
GNU General Public License v3.0
35 stars 5 forks source link

[PATCH 00/13] runtime/motu: support debug logging by tracing crate #167

Closed takaswie closed 1 year ago

takaswie commented 1 year ago

It's really helpful to dump logs for debugging purpose. This patchset utilizes tracing and tracing-subscriber crates for the purpose. An option is newly added to motu runtime, then implement tracing events.

Takashi Sakamoto (13):
  runtime/motu: use tracing-subscriber crate to dump debug logs
  runtime/motu: add tracing span and event to runtime for version 1
    models
  runtime/motu: add tracing span and event to runtime for Register DSP
    models
  runtime/motu: add tracing span and event to runtime for Command DSP
    models
  runtime/motu: add tracing event to common controls
  runtime/motu: add tracing event to controls specific to version 1
    models
  runtime/motu: add tracing event to controls specific to version 2
    models
  runtime/motu: add tracing event to controls specific to version 3
    models
  runtime/motu: add tracing event to controls specific to Register DSP
    models
  runtime/motu: add tracing event to controls specific to Command DSP
    models
  runtime/motu: add tracing event to controls specific to 828
  runtime/motu: add tracing event to controls specific to Traveler
  runtime/motu: add tracing event to controls specific to Ultralite

 README.rst                                    |  18 +--
 runtime/motu/Cargo.toml                       |   2 +
 .../src/bin/snd-firewire-motu-ctl-service.rs  |   6 +-
 runtime/motu/src/command_dsp_ctls.rs          | 129 ++++++++++++++++--
 runtime/motu/src/command_dsp_runtime.rs       |  25 +++-
 runtime/motu/src/common_ctls.rs               |  53 ++++---
 runtime/motu/src/f828.rs                      |   6 +-
 runtime/motu/src/lib.rs                       |  10 +-
 runtime/motu/src/register_dsp_ctls.rs         | 111 ++++++++++++---
 runtime/motu/src/register_dsp_runtime.rs      |  26 +++-
 runtime/motu/src/traveler.rs                  |   6 +-
 runtime/motu/src/ultralite.rs                 |   5 +-
 runtime/motu/src/v1_ctls.rs                   |  16 ++-
 runtime/motu/src/v1_runtime.rs                |  24 +++-
 runtime/motu/src/v2_ctls.rs                   |  24 +++-
 runtime/motu/src/v3_ctls.rs                   |  39 ++++--
 16 files changed, 419 insertions(+), 81 deletions(-)
takaswie commented 1 year ago

Merged.