[Spice-commits] Changes to 'tmp'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 17 07:27:52 UTC 2019


New branch 'tmp' available with the following commits:
commit c10532c8d619a5503a964cce823920525e7a584b
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 14:11:53 2019 +0200

    tmp: poll

commit ccb485420c3b29ab507c8d463066fdd9250bda87
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 13:25:15 2019 +0200

    agent-interface: fflush after fwrite

commit 27043cd6840888221e628c9d012d93166dc1ca59
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 11:46:35 2019 +0200

    agent-interface: use fread/fwrite instead of read/write

commit 867a94da42e8a4d4f4ee04951e7c345de5136bea
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:35:18 2019 +0200

    agent-interface: remove unused clientname from accept()

commit cec07e47919890e738671bf5b7f0b20791cdf7d3
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:34:55 2019 +0200

    agent-interface: g_warning->g_critical

commit dea10912218e61dc6bc2bfe8a66b0b0e423d846d
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:34:30 2019 +0200

    agent-interface: close connection directly if client already connected

commit 1365b017f4c923e1306caa95221036448b47456c
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:08:32 2019 +0200

    agent-interface: don't save socket on init errors

commit e0fd8c74b72bf2da4585cdd23b4050575b52fb80
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:07:43 2019 +0200

    agent-interface: check retcode of on_connect_cb

commit 9b47a5a40d3972ea4110bb01e86f516766cedea5
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:07:14 2019 +0200

    agent-interface: nb_recorders as uint32_t

commit 4caa9c223572a00c910e04c697c180866b865bbb
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:06:47 2019 +0200

    agent-interface: SA as typedef

commit c8c7220083d55c0d5b268b859305f7c4bee21635
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Wed Sep 11 10:06:32 2019 +0200

    agent-interface: remove ifdef HAVE_CONFIG_H

commit 3f49b076316d1ab637bb5381ee2d97f9e5c653d5
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Thu Aug 22 15:17:21 2019 +0200

    spice.proto: add quality_indicator message

commit 9df5c6ac7416c16f9ed86674550cba693116b7ca
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Mon Sep 9 09:41:50 2019 +0200

    build: Introduce 'agent' as an alternative Recorder implementation
    
    The 'agent' interface is an experimental alternative to C3D recorder
    for capturing Spice performance indicators.
    
    > --enable-recorder=[c3d/agent/no]
    >          Enable recorder instrumentation [default=no]
    
    Signed-off-by: Kevin Pouget <kpouget at redhat.com>

commit b49caea8d622e019e283d245caa97978937bfc55
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Mon Sep 9 10:53:54 2019 +0200

    agent-interface: add special recorder 'quality_interface'
    
    This special interface should be defined by Spice-Server. It allows
    the forwarding of Quality message to Smart Streaming main module, via
    the socket to the Server's Smart Local Agent.
    
    > RECORDER(quality_interface, 64, "Quality Interface");
    >
    > void main_channel_client_handle_quality_indicator(MainChannelClient *mcc,
    >                                                   SpiceMsgcMainQualityIndicator *msg, uint32_t size)
    > {
    >     record(quality_interface, "client: %s", msg->indic);
    > }
    
    > RECORDER_DECLARE(quality_interface);
    >
    > static void forward_quality(uint64_t *_not_used, const char *quality)
    > {
    >     record(quality_interface, "server: %s", quality);
    > }
    
    > RECORDER_DECLARE(quality_interface);
    >
    > static bool
    > handle_msg_quality(StreamDevice *dev, SpiceCharDeviceInstance *sin)
    > {
    >     /* ... */
    >     record(quality_interface, "guest: %s", quality_msg->quality);
    > }
    
    Signed-off-by: Kevin Pouget <kpouget at redhat.com>

commit 25ec41928ff2ec14d4c1dba429001788ebfcceb9
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Mon Sep 9 10:47:49 2019 +0200

    agent-interface: allow SPICE to provide the on-connect callback
    
    The on_connect callback is called when a Smart Local Agent connects to
    the Agent Interface.
    
    > static void on_agent_interface_connect(void *data);
    >
    > static void init_agent()
    > {
    >     /* ... */
    >     record(agent_interface, "on_connect_cb: %p %p",
    >            on_agent_interface_connect, &connect_data);
    > }
    
    Signed-off-by: Kevin Pouget <kpouget at redhat.com>

commit 2af7ec10bf91bb4cdfa163ed08c5513e81b1b8be
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Mon Sep 9 10:42:31 2019 +0200

    agent-interface: allow SPICE to provide the quality-forwarding callback
    
    The quality-forwarding callback is called when the Agent-Interface
    receives a Quality string from the Smart Local Agent socket. This
    message should be forwarded by SPICE to the Quality Interface of Spice
    Server.
    
    > static void forward_quality(uint64_t *data, const char *quality);
    >
    > static void init_agent(SpiceChannel *channel)
    > {
    >     /* ... */
    >     record(agent_interface, "quality_cb: %p %p", forward_quality, channel);
    > }
    
    Signed-off-by: Kevin Pouget <kpouget at redhat.com>

commit f11cc7da562c2062c0cf49676773587940bf4318
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Mon Sep 9 10:32:21 2019 +0200

    agent-interface: add special recorder 'agent_interface' for port configuration
    
    This special recorder allows SPICE to configure the Agent Interface:
    
    > RECORDER_DECLARE(agent_interface);
    >
    > static void init_agent(void)
    > {
    >     uint64_t port = 1234;
    >
    >     record(agent_interface, "port: %lu", port);
    > }
    
    The configuration of the Agent Interface port triggers the creation of
    the server socket.
    
    The '%lu' printf-format allows the warning-free compatibility with the
    dummy recorder.h, that passes the record(rec, *) arguments to printf.
    
    Signed-off-by: Kevin Pouget <kpouget at redhat.com>

commit c61736b9601eb8b5f14c1080f60752c38d73d0a4
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Mon Sep 9 09:59:31 2019 +0200

    agent-interface: introduce the core of the Agent Interface
    
    When initialized (recorder_initialization), the Agent Interface launch
    a GThread (handle_communications) that opens a TCP server socket and
    waits for Smart Local Agent connections. When a Local Agent connects
    to the sockets, the communication is initialized
    (agent_initialize_communication), the communication socket is stored
    and the list of Recorders is sent. In return, the local agent
    indicates which recorders to enable.
    
    On the SPICE side, the Agent Interface handles the record() calls
    (recorder_append*). When a record is received from SPICE, and if the
    recorder is enabled, the record entry is sent through the TCP
    connection. Otherwise, the record is dropped.
    
    Signed-off-by: Kevin Pouget <kpouget at redhat.com>

commit 1c29bb8161487be61ecdc3a26c124d43ef3840ff
Author: Kevin Pouget <kpouget at redhat.com>
Date:   Mon Sep 9 09:49:31 2019 +0200

    agent-interface: add agent_interface.h header
    
    This file is based on c3d/recorder's recorder.h file, that describes a
    general-purpose instrumentation interface. agent_interface.h is a
    trimmed-down version of it.
    
    Signed-off-by: Kevin Pouget <kpouget at redhat.com>



More information about the Spice-commits mailing list