| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * BTS PMU driver for perf |
|---|
| 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 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #undef DEBUG |
|---|
| .. | .. |
|---|
| 23 | 15 | #include <linux/device.h> |
|---|
| 24 | 16 | #include <linux/coredump.h> |
|---|
| 25 | 17 | |
|---|
| 26 | | -#include <asm-generic/sizes.h> |
|---|
| 18 | +#include <linux/sizes.h> |
|---|
| 27 | 19 | #include <asm/perf_event.h> |
|---|
| 28 | 20 | |
|---|
| 29 | 21 | #include "../perf_event.h" |
|---|
| .. | .. |
|---|
| 66 | 58 | local_t head; |
|---|
| 67 | 59 | unsigned long end; |
|---|
| 68 | 60 | void **data_pages; |
|---|
| 69 | | - struct bts_phys buf[0]; |
|---|
| 61 | + struct bts_phys buf[]; |
|---|
| 70 | 62 | }; |
|---|
| 71 | 63 | |
|---|
| 72 | 64 | static struct pmu bts_pmu; |
|---|
| .. | .. |
|---|
| 599 | 591 | * the AUX buffer. |
|---|
| 600 | 592 | * |
|---|
| 601 | 593 | * However, since this driver supports per-CPU and per-task inherit |
|---|
| 602 | | - * we cannot use the user mapping since it will not be availble |
|---|
| 594 | + * we cannot use the user mapping since it will not be available |
|---|
| 603 | 595 | * if we're not running the owning process. |
|---|
| 604 | 596 | * |
|---|
| 605 | 597 | * With PTI we can't use the kernal map either, because its not |
|---|