| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * intel_pt_log.c: Intel Processor Trace support |
|---|
| 3 | 4 | * Copyright (c) 2013-2014, Intel Corporation. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 7 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | - * more details. |
|---|
| 13 | | - * |
|---|
| 14 | 5 | */ |
|---|
| 15 | 6 | |
|---|
| 16 | 7 | #include <stdio.h> |
|---|
| .. | .. |
|---|
| 31 | 22 | static char log_name[MAX_LOG_NAME]; |
|---|
| 32 | 23 | bool intel_pt_enable_logging; |
|---|
| 33 | 24 | |
|---|
| 25 | +void *intel_pt_log_fp(void) |
|---|
| 26 | +{ |
|---|
| 27 | + return f; |
|---|
| 28 | +} |
|---|
| 29 | + |
|---|
| 34 | 30 | void intel_pt_log_enable(void) |
|---|
| 35 | 31 | { |
|---|
| 36 | 32 | intel_pt_enable_logging = true; |
|---|