Commit 1efb790
committed
perf/core: adding PMU driver specific configuration
It is entirely possible that some PMUs need specific configuration
that is currently not found in the perf options before a session
can be setup.
It is the case for the CoreSight PMU where a sink needs to be
provided. That sink doesn't fall in any of the current perf
options.
As such this patch adds the capability to receive driver
specific configuration using the existing ioctl() mechanism.
Once the configuration has been pushed down the kernel PMU
callbacks are used to deal with the information sent from user
space.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>1 parent 65ad7b1 commit 1efb790
3 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
394 | 402 | | |
395 | 403 | | |
396 | 404 | | |
| |||
558 | 566 | | |
559 | 567 | | |
560 | 568 | | |
| 569 | + | |
561 | 570 | | |
562 | 571 | | |
563 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3729 | 3729 | | |
3730 | 3730 | | |
3731 | 3731 | | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
3732 | 3735 | | |
3733 | 3736 | | |
3734 | 3737 | | |
| |||
4281 | 4284 | | |
4282 | 4285 | | |
4283 | 4286 | | |
| 4287 | + | |
| 4288 | + | |
4284 | 4289 | | |
4285 | 4290 | | |
4286 | 4291 | | |
| |||
4337 | 4342 | | |
4338 | 4343 | | |
4339 | 4344 | | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
4340 | 4348 | | |
4341 | 4349 | | |
4342 | 4350 | | |
| |||
4369 | 4377 | | |
4370 | 4378 | | |
4371 | 4379 | | |
| 4380 | + | |
4372 | 4381 | | |
4373 | 4382 | | |
4374 | 4383 | | |
| |||
7268 | 7277 | | |
7269 | 7278 | | |
7270 | 7279 | | |
| 7280 | + | |
| 7281 | + | |
| 7282 | + | |
| 7283 | + | |
| 7284 | + | |
| 7285 | + | |
| 7286 | + | |
| 7287 | + | |
| 7288 | + | |
7271 | 7289 | | |
7272 | 7290 | | |
7273 | 7291 | | |
| |||
8004 | 8022 | | |
8005 | 8023 | | |
8006 | 8024 | | |
| 8025 | + | |
8007 | 8026 | | |
8008 | 8027 | | |
8009 | 8028 | | |
| |||
0 commit comments