From: Shreyansh Chouhan <chouhan.shreyansh2702@gmail.com>
To: kraxel@redhat.com, mst@redhat.com, laurent@vivier.eu
Cc: Shreyansh Chouhan <chouhan.shreyansh2702@gmail.com>,
qemu-devel@nongnu.org
Subject: [RFC PATCH 25/25] virtio-snd: Replaced AUD_log with tracepoints
Date: Sat, 12 Feb 2022 03:43:19 +0530 [thread overview]
Message-ID: <20220211221319.193404-26-chouhan.shreyansh2702@gmail.com> (raw)
In-Reply-To: <20210429120445.694420-1-chouhan.shreyansh2702@gmail.com>
Replaced the use of AUD_log via macros in virtio sound with
tracepoints.
Signed-off-by: Shreyansh Chouhan <chouhan.shreyansh2702@gmail.com>
---
hw/audio/trace-events | 14 +++++++++++
hw/audio/virtio-snd.c | 55 +++++++++++++++++--------------------------
2 files changed, 36 insertions(+), 33 deletions(-)
diff --git a/hw/audio/trace-events b/hw/audio/trace-events
index e0e71cd9b1..a747648e4d 100644
--- a/hw/audio/trace-events
+++ b/hw/audio/trace-events
@@ -11,3 +11,17 @@ hda_audio_running(const char *stream, int nr, bool running) "st %s, nr %d, run %
hda_audio_format(const char *stream, int chan, const char *fmt, int freq) "st %s, %d x %s @ %d Hz"
hda_audio_adjust(const char *stream, int pos) "st %s, pos %d"
hda_audio_overrun(const char *stream) "st %s"
+
+#virtio-snd.c
+virtio_snd_pcm_stream_flush(int stream) "flushing st %d"
+virtio_snd_handle_jack_info(int jack) "VIRTIO_SND_JACK_INFO called for jack %d"
+virtio_snd_handle_jack_remap(void) "VIRTIO_SND_PCM_JACK_REMAP called"
+virtio_snd_handle_pcm_info(int stream) "VIRTIO_SND_PCM_INFO called for stream %d"
+virtio_snd_handle_pcm_set_params(int stream) "VIRTIO_SND_PCM_SET_PARAMS called for stream %d"
+virtio_snd_handle_pcm_start(int stream) "VIRTIO_SND_PCM_START called for stream %d"
+virtio_snd_handle_pcm_stop(int stream) "VIRTIO_SND_PCM_STOP called for stream %id"
+virtio_snd_handle_pcm_release(int stream) "VIRTIO_SND_PCM_RELEASE called for stream %id"
+virtio_snd_handle_chmap_info(void) "VIRTIO_SND_CHMAP_INFO called"
+virtio_snd_output_cb(int to_play, int written) "to play: %d, written: %d"
+virtio_snd_handle_xfer(void) "tx/rx queue callback called"
+virtio_snd_handle_event(void) "event queue callback called"
diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c
index 81a478d039..38a3b5e555 100644
--- a/hw/audio/virtio-snd.c
+++ b/hw/audio/virtio-snd.c
@@ -39,10 +39,6 @@
#define VIRTIO_SOUND_HDA_FN_NID_OUT 0
#define VIRTIO_SOUND_HDA_FN_NID_IN 1
-#define virtio_snd_log(...) AUD_log("virtio sound info", __VA_ARGS__)
-#define virtio_snd_warn(...) AUD_log("virtio sound warn", __VA_ARGS__)
-#define virtio_snd_err(...) AUD_log("virtio sound err", __VA_ARGS__)
-
static void virtio_snd_get_config(VirtIODevice *vdev, uint8_t *config)
{
VirtIOSound *s = VIRTIO_SOUND(vdev);
@@ -125,7 +121,7 @@ static uint32_t virtio_snd_handle_jack_info(VirtIOSound *s,
if (iov_size(elem->in_sg, elem->in_num) <
sizeof(virtio_snd_hdr) + req.count * req.size) {
- virtio_snd_err("jack info: buffer too small got: %lu needed: %lu\n",
+ error_report("jack info: buffer too small got: %lu needed: %lu\n",
iov_size(elem->in_sg, elem->in_num),
sizeof(virtio_snd_hdr) + req.count * req.size);
resp.code = VIRTIO_SND_S_BAD_MSG;
@@ -134,9 +130,10 @@ static uint32_t virtio_snd_handle_jack_info(VirtIOSound *s,
virtio_snd_jack_info *jack_info = g_new0(virtio_snd_jack_info, req.count);
for (int i = req.start_id; i < req.count + req.start_id; i++) {
+ trace_virtio_snd_handle_jack_info(i);
virtio_snd_jack *jack = virtio_snd_get_jack(s, i);
if (!jack) {
- virtio_snd_err("Invalid jack id: %d\n", i);
+ error_report("Invalid jack id: %d\n", i);
resp.code = VIRTIO_SND_S_BAD_MSG;
goto done;
}
@@ -180,6 +177,7 @@ static uint32_t virtio_snd_handle_jack_remap(VirtIOSound *s,
virtio_snd_hdr resp;
resp.code = VIRTIO_SND_S_OK;
+ trace_virtio_snd_handle_jack_remap();
/* TODO: implement remap */
size_t sz;
@@ -202,7 +200,6 @@ static virtio_snd_pcm_stream *virtio_snd_pcm_get_stream(VirtIOSound *s,
uint32_t stream)
{
if (stream >= s->snd_conf.streams) {
- virtio_snd_err("Invalid stream request %d\n", stream);
return NULL;
}
return s->streams[stream];
@@ -218,7 +215,6 @@ static virtio_snd_pcm_params *virtio_snd_pcm_get_params(VirtIOSound *s,
uint32_t stream)
{
if (stream >= s->snd_conf.streams) {
- virtio_snd_err("Invalid stream request %d\n", stream);
return NULL;
}
return s->pcm_params[stream];
@@ -243,7 +239,7 @@ static uint32_t virtio_snd_handle_pcm_info(VirtIOSound *s,
virtio_snd_hdr resp;
if (iov_size(elem->in_sg, elem->in_num) <
sizeof(virtio_snd_hdr) + req.size * req.count) {
- virtio_snd_err("pcm info: buffer too small, got: %lu, needed: %lu\n",
+ error_report("pcm info: buffer too small, got: %lu, needed: %lu\n",
iov_size(elem->in_sg, elem->in_num),
sizeof(virtio_snd_pcm_info));
resp.code = VIRTIO_SND_S_BAD_MSG;
@@ -253,10 +249,11 @@ static uint32_t virtio_snd_handle_pcm_info(VirtIOSound *s,
virtio_snd_pcm_stream *stream;
virtio_snd_pcm_info *pcm_info = g_new0(virtio_snd_pcm_info, req.count);
for (int i = req.start_id; i < req.start_id + req.count; i++) {
+ trace_virtio_snd_handle_pcm_info(i);
stream = virtio_snd_pcm_get_stream(s, i);
if (!stream) {
- virtio_snd_err("Invalid stream id: %d\n", i);
+ error_report("Invalid stream id: %d\n", i);
resp.code = VIRTIO_SND_S_BAD_MSG;
goto done;
}
@@ -317,7 +314,7 @@ static uint32_t virtio_snd_pcm_set_params_impl(VirtIOSound *s,
st_params->period_bytes = params->period_bytes;
if (params->channel < 1 || params->channel > AUDIO_MAX_CHANNELS) {
- virtio_snd_err("Number of channels not supported\n");
+ error_report("Number of channels not supported\n");
return VIRTIO_SND_S_NOT_SUPP;
}
st_params->channel = params->channel;
@@ -346,13 +343,13 @@ static uint32_t virtio_snd_pcm_set_params_impl(VirtIOSound *s,
1 << VIRTIO_SND_PCM_RATE_384000;
if (!(supported_formats & (1 << params->format))) {
- virtio_snd_err("Stream format not supported\n");
+ error_report("Stream format not supported\n");
return VIRTIO_SND_S_NOT_SUPP;
}
st_params->format = params->format;
if (!(supported_rates & (1 << params->rate))) {
- virtio_snd_err("Stream rate not supported\n");
+ error_report("Stream rate not supported\n");
return VIRTIO_SND_S_NOT_SUPP;
}
st_params->rate = params->rate;
@@ -378,6 +375,7 @@ static uint32_t virtio_snd_handle_pcm_set_params(VirtIOSound *s,
sz = iov_to_buf(elem->out_sg, elem->out_num, 0, &req, sizeof(req));
assert(sz == sizeof(virtio_snd_pcm_set_params));
+ trace_virtio_snd_handle_pcm_set_params(req.hdr.stream_id);
virtio_snd_hdr resp;
resp.code = virtio_snd_pcm_set_params_impl(s, &req);
@@ -702,7 +700,6 @@ static void virtio_snd_output_cb(void *opaque, int free)
to_play = MIN(free, pending);
- virtio_snd_log("to_play: %d, free: %d, pending: %d\n", to_play, free, pending);
while (to_play) {
int wbytes = write_audio(st, to_play);
@@ -715,7 +712,7 @@ static void virtio_snd_output_cb(void *opaque, int free)
pending -= wbytes;
}
- virtio_snd_log("written: %d\n", written);
+ trace_virtio_snd_output_cb(to_play, written);
}
/*
@@ -728,7 +725,6 @@ static void virtio_snd_output_cb(void *opaque, int free)
static uint32_t virtio_snd_pcm_prepare_impl(VirtIOSound *s, uint32_t stream)
{
if (!s->streams || !s->pcm_params || !s->pcm_params[stream]) {
- virtio_snd_err("Cannot prepare stream %d without params.\n", stream);
return VIRTIO_SND_S_BAD_MSG;
}
@@ -849,6 +845,7 @@ static uint32_t virtio_snd_handle_pcm_start_stop(VirtIOSound *s,
virtio_snd_hdr resp;
resp.code = VIRTIO_SND_S_OK;
+ trace_virtio_snd_handle_pcm_stop(req.stream_id);
virtio_snd_pcm_stream *st = virtio_snd_pcm_get_stream(s, req.stream_id);
if (st->direction == VIRTIO_SND_D_OUTPUT)
AUD_set_active_out(st->voice.out, start);
@@ -871,9 +868,6 @@ static uint32_t virtio_snd_pcm_release_impl(virtio_snd_pcm_stream *st, uint32_t
{
// if there are still pending io messages do nothing
if (virtio_snd_pcm_get_pending_bytes(st)) {
- // flush the stream
- virtio_snd_log("Started flushing stream");
-
// set flushing to true, the callback will automatically close the
// stream once the flushing is done
st->flushing = true;
@@ -923,11 +917,11 @@ static uint32_t virtio_snd_handle_pcm_release(VirtIOSound *s,
sz = iov_to_buf(elem->out_sg, elem->out_num, 0, &req, sizeof(req));
assert(sz == sizeof(virtio_snd_pcm_hdr));
- virtio_snd_log("Release called\n");
+ trace_virtio_snd_handle_pcm_release(req.stream_id);
virtio_snd_pcm_stream *st = virtio_snd_pcm_get_stream(s, req.stream_id);
if (!st) {
- virtio_snd_err("already released %d\n", req.stream_id);
+ error_report("already released stream %d", req.stream_id);
return VIRTIO_SND_S_BAD_MSG;
}
@@ -961,7 +955,7 @@ static void virtio_snd_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
}
if (iov_size(elem->in_sg, elem->in_num) < sizeof(resp) ||
iov_size(elem->out_sg, elem->out_num) < sizeof(ctrl)) {
- virtio_snd_err("virtio-snd ctrl missing headers\n");
+ error_report("virtio-snd ctrl missing headers\n");
virtqueue_detach_element(vq, elem, 0);
g_free(elem);
break;
@@ -974,7 +968,7 @@ static void virtio_snd_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
iov_discard_front(&iov, &iov_cnt, sizeof(ctrl));
if (sz != sizeof(ctrl)) {
/* error */
- virtio_snd_err("virtio snd ctrl could not read header\n");
+ error_report("virtio snd ctrl could not read header\n");
resp.code = VIRTIO_SND_S_BAD_MSG;
} else if (ctrl.code == VIRTIO_SND_R_JACK_INFO) {
sz = virtio_snd_handle_jack_info(s, elem);
@@ -993,10 +987,10 @@ static void virtio_snd_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
} else if (ctrl.code == VIRTIO_SND_R_PCM_RELEASE) {
sz = virtio_snd_handle_pcm_release(s, elem);
} else if (ctrl.code == VIRTIO_SND_R_CHMAP_INFO) {
- virtio_snd_log("VIRTIO_SND_R_CHMAP_INFO");
+ trace_virtio_snd_handle_chmap_info();
} else {
/* error */
- virtio_snd_err("virtio snd header not recognized: %d\n", ctrl.code);
+ error_report("virtio snd header not recognized: %d\n", ctrl.code);
resp.code = VIRTIO_SND_S_BAD_MSG;
}
@@ -1023,8 +1017,6 @@ static void virtio_snd_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
static void virtio_snd_pcm_add_buf(VirtIOSound *s, uint32_t stream,
VirtQueueElement *elem)
{
- virtio_snd_log("add_buf called\n");
-
virtio_snd_pcm_stream *st = virtio_snd_pcm_get_stream(s, stream);
uint32_t buf_size, dir;
int i;
@@ -1054,12 +1046,13 @@ static void virtio_snd_pcm_add_buf(VirtIOSound *s, uint32_t stream,
*/
static void virtio_snd_handle_xfer(VirtIODevice *vdev, VirtQueue *vq)
{
- virtio_snd_log("tx/rx queue callback called\n");
VirtIOSound *s = VIRTIO_SOUND(vdev);
VirtQueueElement *elem;
size_t sz;
virtio_snd_pcm_xfer hdr;
+ trace_virtio_snd_handle_xfer();
+
for (;;) {
elem = virtqueue_pop(vq, sizeof(VirtQueueElement));
if (!elem) {
@@ -1089,7 +1082,7 @@ static void virtio_snd_handle_xfer(VirtIODevice *vdev, VirtQueue *vq)
*/
static void virtio_snd_handle_event(VirtIODevice *vdev, VirtQueue *vq)
{
- virtio_snd_log("event queue callback called\n");
+ trace_virtio_snd_handle_event();
}
/*
@@ -1245,8 +1238,4 @@ static void virtio_register_types(void)
type_register_static(&virtio_snd_dev_info);
}
-#undef virtio_snd_log
-#undef virtio_snd_warn
-#undef virtio_snd_err
-
type_init(virtio_register_types)
--
2.31.1
prev parent reply other threads:[~2022-02-11 22:49 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 12:04 [RFC PATCH 00/27] Virtio sound card implementation Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 01/27] virtio-snd: Add virtio sound header file Shreyansh Chouhan
2021-04-30 9:34 ` Gerd Hoffmann
2021-04-29 12:04 ` [RFC PATCH 02/27] virtio-snd: Add jack control structures Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 03/27] virtio-snd: Add PCM " Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 04/27] virtio-snd: Add chmap " Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 05/27] virtio-snd: Add device implementation structures Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 06/27] virtio-snd: Add PCI wrapper code for VirtIOSound Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 07/27] virtio-snd: Add properties for class init Shreyansh Chouhan
2021-05-04 13:32 ` Laurent Vivier
2021-05-04 19:35 ` Shreyansh Chouhan
2021-05-04 20:30 ` Laurent Vivier
2021-05-04 21:24 ` Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 08/27] virtio-snd: Add code for get config function Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 09/27] virtio-snd: Add code for set " Shreyansh Chouhan
2021-04-30 9:55 ` Gerd Hoffmann
2021-04-29 12:04 ` [RFC PATCH 10/27] virtio-snd: Add code for the realize function Shreyansh Chouhan
[not found] ` <CANo3dkpB6Qn46mDGdGE4KTNqHpJkajNcnq_4BugNC5jd8r042Q@mail.gmail.com>
2021-07-22 4:52 ` Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 11/27] virtio-snd: Add macros for logging Shreyansh Chouhan
2021-04-30 9:59 ` Gerd Hoffmann
2021-04-29 12:04 ` [RFC PATCH 12/27] virtio-snd: Add control virtqueue handler Shreyansh Chouhan
2021-04-30 10:02 ` Gerd Hoffmann
2021-04-29 12:04 ` [RFC PATCH 13/27] virtio-snd: Add VIRTIO_SND_R_JACK_INFO handler Shreyansh Chouhan
2021-04-30 10:13 ` Gerd Hoffmann
2021-04-29 12:04 ` [RFC PATCH 14/27] virtio-snd: Add stub for VIRTIO_SND_R_JACK_REMAP handler Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 15/27] virtio-snd: Add VIRTIO_SND_R_PCM_INFO handler Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 16/27] virtio-snd: Add VIRITO_SND_R_PCM_SET_PARAMS handle Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 17/27] virtio-snd: Add VIRTIO_SND_R_PCM_PREPARE handler Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 18/27] virtio-snd: Add default configs to realize fn Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 19/27] virtio-snd: Add callback for SWVoiceOut Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 20/27] virtio-snd: Add VIRITO_SND_R_PCM_START handler Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 21/27] virtio-snd: Add VIRTIO_SND_R_PCM_STOP handler Shreyansh Chouhan
2021-04-30 10:22 ` Gerd Hoffmann
2021-04-29 12:04 ` [RFC PATCH 22/27] virtio-snd: Add VIRTIO_SND_R_PCM_RELEASE handler Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 23/27] virtio-snd: Replaced goto with if else Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 24/27] virtio-snd: Add code to device unrealize function Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 25/27] virtio-snd: Add tx vq and handler Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 26/27] virtio-snd: Add event vq and a handler stub Shreyansh Chouhan
2021-04-29 12:04 ` [RFC PATCH 27/27] virtio-snd: Add rx vq and stub handler Shreyansh Chouhan
2021-04-29 12:48 ` [RFC PATCH 00/27] Virtio sound card implementation no-reply
2021-04-30 10:56 ` Gerd Hoffmann
2022-02-11 22:12 ` [RFC PATCH v2 00/25] Virtio Sound card Implementation Shreyansh Chouhan
2022-02-12 19:08 ` Laurent Vivier
2022-02-14 10:44 ` Gerd Hoffmann
2022-02-14 11:11 ` Laurent Vivier
2023-02-22 13:11 ` Stefano Garzarella
2022-02-11 22:12 ` [RFC PATCH 01/25] virtio-snd: Add virtio sound header file Shreyansh Chouhan
2022-02-14 10:37 ` Gerd Hoffmann
2022-02-11 22:12 ` [RFC PATCH 02/25] virtio-snd: Add jack control structures Shreyansh Chouhan
2022-02-11 22:12 ` [RFC PATCH 03/25] virtio-snd: Add PCM " Shreyansh Chouhan
2022-02-11 22:12 ` [RFC PATCH 04/25] virtio-snd: Add chmap " Shreyansh Chouhan
2022-02-11 22:12 ` [RFC PATCH 05/25] virtio-snd: Add device implementation structures Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 06/25] virtio-snd: Add PCI wrapper code for VirtIOSound Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 07/25] virtio-snd: Add properties for class init Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 08/25] virtio-snd: Add code for get config function Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 09/25] virtio-snd: Add code for the realize function Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 10/25] virtio-snd: Add macros for logging Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 11/25] virtio-snd: Add control virtqueue handler Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 12/25] virtio-snd: Add VIRTIO_SND_R_JACK_INFO handler Shreyansh Chouhan
2022-02-12 19:10 ` Laurent Vivier
2022-02-11 22:13 ` [RFC PATCH 13/25] virtio-snd: Add stub for VIRTIO_SND_R_JACK_REMAP handler Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 14/25] virtio-snd: Add VIRTIO_SND_R_PCM_INFO handler Shreyansh Chouhan
2022-02-12 19:20 ` Laurent Vivier
2022-02-11 22:13 ` [RFC PATCH 15/25] virtio-snd: Add VIRITO_SND_R_PCM_SET_PARAMS handle Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 16/25] virtio-snd: Add VIRTIO_SND_R_PCM_PREPARE handler Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 17/25] virtio-snd: Add default configs to realize fn Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 18/25] virtio-snd: Add callback for SWVoiceOut Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 19/25] virtio-snd: Add start/stop handler Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 20/25] virtio-snd: Add VIRTIO_SND_R_PCM_RELEASE handler Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 21/25] virtio-snd: Replaced goto with if else Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 22/25] virtio-snd: Add code to device unrealize function Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 23/25] virtio-snd: Add xfer handler Shreyansh Chouhan
2022-02-11 22:13 ` [RFC PATCH 24/25] virtio-snd: Add event vq and a handler stub Shreyansh Chouhan
2022-02-11 22:13 ` Shreyansh Chouhan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220211221319.193404-26-chouhan.shreyansh2702@gmail.com \
--to=chouhan.shreyansh2702@gmail.com \
--cc=kraxel@redhat.com \
--cc=laurent@vivier.eu \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).