From owner-svn-src-projects@freebsd.org Thu Aug 6 16:44:25 2020 Return-Path: Delivered-To: svn-src-projects@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 39E493A684D for ; Thu, 6 Aug 2020 16:44:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BMvTj0jnPz4L6H; Thu, 6 Aug 2020 16:44:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EFDAA9D65; Thu, 6 Aug 2020 16:44:24 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 076GiOgT065884; Thu, 6 Aug 2020 16:44:24 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 076GiOTk065883; Thu, 6 Aug 2020 16:44:24 GMT (envelope-from dim@FreeBSD.org) Message-Id: <202008061644.076GiOTk065883@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Thu, 6 Aug 2020 16:44:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r363971 - projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD X-SVN-Group: projects X-SVN-Commit-Author: dim X-SVN-Commit-Paths: projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD X-SVN-Commit-Revision: 363971 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2020 16:44:25 -0000 Author: dim Date: Thu Aug 6 16:44:24 2020 New Revision: 363971 URL: https://svnweb.freebsd.org/changeset/base/363971 Log: Reapply r351662 (by emaste): lldb: shorten thread names to make logs easier to follow lldb prepends the thread name to log entries, and the existing thread name for the FreeBSD ProcessMonitor thread was longer than the kernel's supported thread name length, and so was truncated. This made logs hard to read, as the truncated thread name ran into the log message. Shorten "lldb.process.freebsd.operation" to just "freebsd.op" so that logs are more readable. (Upstreaming to lldb still to be done). Modified: projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp Modified: projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp ============================================================================== --- projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp Thu Aug 6 16:42:48 2020 (r363970) +++ projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp Thu Aug 6 16:44:24 2020 (r363971) @@ -786,7 +786,7 @@ ProcessMonitor::~ProcessMonitor() { StopMonitor(); } // Thread setup and tear down. void ProcessMonitor::StartLaunchOpThread(LaunchArgs *args, Status &error) { - static const char *g_thread_name = "lldb.process.freebsd.operation"; + static const char *g_thread_name = "freebsd.op"; if (m_operation_thread && m_operation_thread->IsJoinable()) return; @@ -956,7 +956,7 @@ FINISH: void ProcessMonitor::StartAttachOpThread(AttachArgs *args, lldb_private::Status &error) { - static const char *g_thread_name = "lldb.process.freebsd.operation"; + static const char *g_thread_name = "freebsd.op"; if (m_operation_thread && m_operation_thread->IsJoinable()) return;