| 1 |
/* sysprof-document-symbols-private.h |
| 2 |
* |
| 3 |
* Copyright 2023 Christian Hergert <[email protected]> |
| 4 |
* |
| 5 |
* This program is free software: you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation, either version 3 of the License, or |
| 8 |
* (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
* |
| 18 |
* SPDX-License-Identifier: GPL-3.0-or-later |
| 19 |
*/ |
| 20 |
|
| 21 |
#pragma once |
| 22 |
|
| 23 |
#include "sysprof-document.h" |
| 24 |
#include "sysprof-process-info-private.h" |
| 25 |
#include "sysprof-symbol-cache-private.h" |
| 26 |
#include "sysprof-symbol.h" |
| 27 |
#include "sysprof-symbolizer.h" |
| 28 |
|
| 29 |
G_BEGIN_DECLS |
| 30 |
|
| 31 |
#define SYSPROF_TYPE_DOCUMENT_SYMBOLS (sysprof_document_symbols_get_type()) |
| 32 |
|
| 33 |
G_DECLARE_FINAL_TYPE (SysprofDocumentSymbols, sysprof_document_symbols, SYSPROF, DOCUMENT_SYMBOLS, GObject) |
| 34 |
|
| 35 |
struct _SysprofDocumentSymbols |
| 36 |
{ |
| 37 |
GObject parent_instance; |
| 38 |
SysprofSymbol *context_switches[SYSPROF_ADDRESS_CONTEXT_GUEST_USER+1]; |
| 39 |
SysprofSymbolCache *kernel_symbols; |
| 40 |
}; |
| 41 |
|
| 42 |
void _sysprof_document_symbols_new (SysprofDocument *document, |
| 43 |
SysprofStrings *strings, |
| 44 |
SysprofSymbolizer *symbolizer, |
| 45 |
GHashTable *pid_to_process_info, |
| 46 |
ProgressFunc progress_func, |
| 47 |
gpointer progress_data, |
| 48 |
GDestroyNotify progress_data_destroy, |
| 49 |
GCancellable *cancellable, |
| 50 |
GAsyncReadyCallback callback, |
| 51 |
gpointer user_data); |
| 52 |
SysprofDocumentSymbols *_sysprof_document_symbols_new_finish (GAsyncResult *result, |
| 53 |
GError **error); |
| 54 |
SysprofSymbol *_sysprof_document_symbols_lookup (SysprofDocumentSymbols *symbols, |
| 55 |
const SysprofProcessInfo *process_info, |
| 56 |
SysprofAddressContext context, |
| 57 |
SysprofAddress address); |
| 58 |
|
| 59 |
G_END_DECLS |