Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp662958rdb; Wed, 17 Jan 2024 13:28:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBfJxGa5jvXDgfcDzdtbP15lK/BWasuigBPVIz1f4848AI2Fyh+IwN0J8DA3Ic+6blWaCs X-Received: by 2002:a05:620a:c86:b0:783:4a70:85e4 with SMTP id q6-20020a05620a0c8600b007834a7085e4mr7108800qki.65.1705526905908; Wed, 17 Jan 2024 13:28:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705526905; cv=pass; d=google.com; s=arc-20160816; b=lVfrsUl2hk0xffCz3LtT4ARUpMXcW8edg5+fzTeb+GjJ/3lT2nafdYFUqvRZYA+3Ox OIuU7O9X/ewHg1QjIZMFVO+p5/xmQjCv8ZwABSyR3jf2OZnKez0BBJWT6/V7+GszymIZ MqJKEbkkqcVkheKZxoL+F5O4HaRvIvDtywfNLWT1vfbmIwpWYoDK7Z3MpB7OeXXxjcKs yii5LddJZl7Ndv24+UkGQ1NQhfd7bw72gwF9d0RMnx4H1cZK0NSWiA3WvSoBHpaq+KRc 6gsC9AwCIslrwaw0LwCrpKnrLaAqMBUwfC7kTV8RG1UgKAR5E0BXZ070ZbsTom7/x88K b6Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=3A+fnt8LtryOwMOS18F4qX5CgiDujh1FzAcsP6LRFLU=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=bEl1kmodIC3UQ+LsGGtM/bm9/IT4KxxDsl7LIDimjtySBaSoPlFj0fnbJermmPjb7D 7xXezHGuTZnSEkP5bJdTXQHjkO5gdNgY0edpkJXG4r/tTRW3UhX3QVW/E99cGTS2lJx4 R58rsyvTJwZHHE2sQkV3BipB/kfrAvY8KSYUUiAgULjtVwQdScIj+oVgGQDtuoe9t118 wAzCpw+cJUvjnRqFJoYQOa7WqI4p0GZh2SdwcPTCykSHv9DiIispAHPUE9LWtehugtOj gDly69dwKzLmRbiJtX0nILP0gqKsR+yhxNHBHhqvvjTh34n/9FL/8+1nilNFMOG5aeP2 wzhg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GG68jp3g; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x4-20020a05620a258400b00781711b5778si13252707qko.107.2024.01.17.13.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 13:28:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GG68jp3g; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A07D81C21F0F for ; Wed, 17 Jan 2024 21:28:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC7CE2557E; Wed, 17 Jan 2024 21:28:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GG68jp3g" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1872325576 for ; Wed, 17 Jan 2024 21:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705526899; cv=none; b=RJK6Lejyz3Xi35EKa5zCSboGNplJz5c92dVMJvprJ2R/g646f/2jjAjf7X31YQ+0xQZsZLH5oTXMGInxYtxy6zsOa1PClX00xU7KU0lIa5PMj/OHUUUAa2trhuynJ/sBOAq0s2BttGoM5+HO/KfS+W62jZ7NvbRO0v694fZH00o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705526899; c=relaxed/simple; bh=TZwuOdM2p/kYD8VmDHysT56kEEbWFnF6JB1KLNKCAVg=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; b=FACspKat0XFkNuDEN2zAek6fdaxpbBzurIRL2EyKZRz2YoVwp+kJ6uZUvAc5J4wa7DkE4zn+IioPWCCR1lHeO7qdxNcUuDRPbXyO6qW58glYpNXG5aQJapWJH0qL3ikyrdXzViqGrL96868vX9uNA140ZVgFdOnGksW9fgusmkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GG68jp3g; arc=none smtp.client-ip=209.85.167.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3bd7c5b243dso2157891b6e.1 for ; Wed, 17 Jan 2024 13:28:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705526896; x=1706131696; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3A+fnt8LtryOwMOS18F4qX5CgiDujh1FzAcsP6LRFLU=; b=GG68jp3gg6/41qvV1yPm3gOh1z9pjdbi/0E4nsu8Vm8cNN8vf9Zanj2eOWA679zxTO LsAxyAyM7T8OsiIkEMZSyQiNJqt5XGQx8bG0JeEpMqVPTTIs3BfMOvQo6EpLQxuAwRzL bHGnF3u7SBJExbKBe49Ip7w7AoUpTtPsriWH4TM5/1cdGjNlMN89hjoc2opU+lRXi0eu 9F7E7/9ucMNvCUD4nLg+12QQkRLCJr7Ozb4iw9pnemSJbhAY9zrKK6sWY4jNnPvqVZdP rx/WymnxlkwZL77dzYytafcBTw8oFrMqKOI+BXYfhLJ8+xSpvTqmzrKSCzWqr2x2wgeW beVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705526896; x=1706131696; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3A+fnt8LtryOwMOS18F4qX5CgiDujh1FzAcsP6LRFLU=; b=jvVXKbBhI0nnZ0KZ5LuFXleBDeoLLFvBpD13MLvSH8Nrb1XVoThwefvuAFUhksWUkQ ukWP/KT5IFlDaaAm4dCv3H8sEmO7j2Axu1nyFopl6ekqllb4H3+kBJfS7wysRQj4SVt3 YzXPKSgqENFGcxded4sGzBr4LMeG6D2sT6HqP/9NhcooE42z3qzbQr+lWZ1QShFaZO4T /zwF2h3P1NrBLnlmvNZNfYpofvy4Mt6tZYxTSbqa+jZVZudB8cJQQUR7zPjsBHBHikzq 8pBph8qE7WDsSjdqZNrE9U6oIeeWtbtu9occXlVNUYu+Rf74ELg8d7eSvrrlAS7KZ/DH fxww== X-Gm-Message-State: AOJu0YyjhCRYrjMUhypd56F4LCbDT8jMUhQiXijFyHenNszQNroiM/z5 N0BCpzVrKU02r2H+mUIYl+8AXL3uQ9A= X-Received: by 2002:a05:6870:d0c4:b0:210:af25:a5a0 with SMTP id k4-20020a056870d0c400b00210af25a5a0mr752235oaa.1.1705526895998; Wed, 17 Jan 2024 13:28:15 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id lw21-20020a0568708e1500b0020472215893sm59522oab.31.2024.01.17.13.28.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 13:28:13 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v1 2/2] transport: Print owner information when it exit or release Date: Wed, 17 Jan 2024 16:28:11 -0500 Message-ID: <20240117212811.1784326-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117212811.1784326-1-luiz.dentz@gmail.com> References: <20240117212811.1784326-1-luiz.dentz@gmail.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz This prints the owner name when it exits/quits/crash or releases a transport. --- - Looks like there is a bug/race on codec switch it appears the likes of pipewire attempts to call Release in the process which stops the acquire/resume: bluetoothd[1774429]: profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_94_DB_56_F7_F2_88/sep1/fd8: TRANSPORT_G bluetoothd[1774429]: profiles/audio/transport.c:media_request_create() Request created: method=Acquire id=50 bluetoothd[1774429]: profiles/audio/transport.c:media_owner_add() Owner :1.133105 Request Acquire bluetoothd[1774429]: profiles/audio/transport.c:media_transport_set_owner() Transport /org/bluez/hci0/dev_94_DB_56_F7_F2_88/sep1/fd8 Owner :1.5 bluetoothd[1774429]: profiles/audio/transport.c:release() Owner :1.133105 bluetoothd[1774429]: profiles/audio/transport.c:media_owner_remove() Owner :1.133105 Request Acquire profiles/audio/transport.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index a4696154aba5..5395985b990f 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -531,6 +531,8 @@ static void media_owner_exit(DBusConnection *connection, void *user_data) { struct media_owner *owner = user_data; + DBG("Owner %s", owner->name); + owner->watch = 0; media_owner_remove(owner); @@ -742,6 +744,8 @@ static DBusMessage *release(DBusConnection *conn, DBusMessage *msg, if (owner == NULL || g_strcmp0(owner->name, sender) != 0) return btd_error_not_authorized(msg); + DBG("Owner %s", owner->name); + if (owner->pending) { const char *member; -- 2.43.0