159ec512cSGreg Clayton //===-- ProcessKDPLog.cpp ---------------------------------------*- C++ -*-===//
2f9765acdSGreg Clayton //
3*2946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*2946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
5*2946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6f9765acdSGreg Clayton //
7f9765acdSGreg Clayton //===----------------------------------------------------------------------===//
8f9765acdSGreg Clayton 
9f9765acdSGreg Clayton #include "ProcessKDPLog.h"
10f9765acdSGreg Clayton 
11f9765acdSGreg Clayton using namespace lldb_private;
12f9765acdSGreg Clayton 
137b35b781SPavel Labath static constexpr Log::Category g_categories[] = {
147b35b781SPavel Labath     {{"async"}, {"log asynchronous activity"}, KDP_LOG_ASYNC},
157b35b781SPavel Labath     {{"break"}, {"log breakpoints"}, KDP_LOG_BREAKPOINTS},
167b35b781SPavel Labath     {{"comm"}, {"log communication activity"}, KDP_LOG_COMM},
177b35b781SPavel Labath     {{"data-long"},
187b35b781SPavel Labath      {"log memory bytes for memory reads and writes for all transactions"},
197b35b781SPavel Labath      KDP_LOG_MEMORY_DATA_LONG},
207b35b781SPavel Labath     {{"data-short"},
217b35b781SPavel Labath      {"log memory bytes for memory reads and writes for short transactions "
227b35b781SPavel Labath       "only"},
237b35b781SPavel Labath      KDP_LOG_MEMORY_DATA_SHORT},
247b35b781SPavel Labath     {{"memory"}, {"log memory reads and writes"}, KDP_LOG_MEMORY},
257b35b781SPavel Labath     {{"packets"}, {"log gdb remote packets"}, KDP_LOG_PACKETS},
267b35b781SPavel Labath     {{"process"}, {"log process events and activities"}, KDP_LOG_PROCESS},
277b35b781SPavel Labath     {{"step"}, {"log step related activities"}, KDP_LOG_STEP},
287b35b781SPavel Labath     {{"thread"}, {"log thread events and activities"}, KDP_LOG_THREAD},
297b35b781SPavel Labath     {{"watch"}, {"log watchpoint related activities"}, KDP_LOG_WATCHPOINTS},
307b35b781SPavel Labath };
31f9765acdSGreg Clayton 
327b35b781SPavel Labath Log::Channel ProcessKDPLog::g_channel(g_categories, KDP_LOG_DEFAULT);
33f9765acdSGreg Clayton 
347b35b781SPavel Labath void ProcessKDPLog::Initialize() { Log::Register("kdp-remote", g_channel); }
35