.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * L220/L310 cache controller support |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2016 ARM Limited |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
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, write to the Free Software |
---|
17 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
18 | 6 | */ |
---|
19 | 7 | #include <linux/errno.h> |
---|
20 | 8 | #include <linux/hrtimer.h> |
---|
.. | .. |
---|
314 | 302 | event->attach_state & PERF_ATTACH_TASK) |
---|
315 | 303 | return -EINVAL; |
---|
316 | 304 | |
---|
317 | | - if (event->attr.exclude_user || |
---|
318 | | - event->attr.exclude_kernel || |
---|
319 | | - event->attr.exclude_hv || |
---|
320 | | - event->attr.exclude_idle || |
---|
321 | | - event->attr.exclude_host || |
---|
322 | | - event->attr.exclude_guest) |
---|
323 | | - return -EINVAL; |
---|
324 | | - |
---|
325 | 305 | if (event->cpu < 0) |
---|
326 | 306 | return -EINVAL; |
---|
327 | 307 | |
---|
.. | .. |
---|
544 | 524 | .del = l2x0_pmu_event_del, |
---|
545 | 525 | .event_init = l2x0_pmu_event_init, |
---|
546 | 526 | .attr_groups = l2x0_pmu_attr_groups, |
---|
| 527 | + .capabilities = PERF_PMU_CAP_NO_EXCLUDE, |
---|
547 | 528 | }; |
---|
548 | 529 | |
---|
549 | 530 | l2x0_pmu_reset(); |
---|