Repository navigation
Commit bf8e8f4
perf evlist: Add 'system_wide' option
Add an option to cause a selected event to be opened always without a
pid when configured by perf_evsel__config().
This is needed when using the sched_switch tracepoint to follow object
code execution.
sched_switch occurs before the task switch and so it cannot record it in
a context limited to that task. Note that also means that sched_switch
is useless when capturing data per-thread, as is the 'context-switches'
software event for the same reason.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1406786474-9306-9-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>1 parent f247fb8 commit bf8e8f4
3 files changed
Lines changed: 64 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
268 | 277 | | |
269 | 278 | | |
270 | 279 | | |
271 | 280 | | |
272 | 281 | | |
273 | | - | |
| 282 | + | |
274 | 283 | | |
275 | 284 | | |
276 | 285 | | |
277 | 286 | | |
278 | 287 | | |
| 288 | + | |
279 | 289 | | |
280 | 290 | | |
281 | 291 | | |
| |||
288 | 298 | | |
289 | 299 | | |
290 | 300 | | |
291 | | - | |
| 301 | + | |
292 | 302 | | |
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
296 | 306 | | |
| 307 | + | |
297 | 308 | | |
298 | 309 | | |
299 | 310 | | |
| |||
305 | 316 | | |
306 | 317 | | |
307 | 318 | | |
| 319 | + | |
| 320 | + | |
308 | 321 | | |
309 | 322 | | |
310 | 323 | | |
311 | 324 | | |
312 | | - | |
313 | | - | |
| 325 | + | |
| 326 | + | |
314 | 327 | | |
315 | 328 | | |
316 | 329 | | |
| |||
324 | 337 | | |
325 | 338 | | |
326 | 339 | | |
| 340 | + | |
| 341 | + | |
327 | 342 | | |
328 | 343 | | |
329 | 344 | | |
330 | 345 | | |
331 | | - | |
332 | | - | |
| 346 | + | |
| 347 | + | |
333 | 348 | | |
334 | 349 | | |
335 | 350 | | |
| |||
343 | 358 | | |
344 | 359 | | |
345 | 360 | | |
346 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
347 | 371 | | |
348 | 372 | | |
349 | 373 | | |
| |||
636 | 660 | | |
637 | 661 | | |
638 | 662 | | |
639 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
640 | 669 | | |
641 | 670 | | |
642 | 671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
| |||
713 | 717 | | |
714 | 718 | | |
715 | 719 | | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
716 | 723 | | |
717 | 724 | | |
718 | 725 | | |
| |||
743 | 750 | | |
744 | 751 | | |
745 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
746 | 756 | | |
747 | 757 | | |
748 | 758 | | |
| |||
787 | 797 | | |
788 | 798 | | |
789 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
790 | 803 | | |
791 | 804 | | |
792 | 805 | | |
| |||
875 | 888 | | |
876 | 889 | | |
877 | 890 | | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
878 | 894 | | |
879 | 895 | | |
880 | 896 | | |
| |||
997 | 1013 | | |
998 | 1014 | | |
999 | 1015 | | |
1000 | | - | |
| 1016 | + | |
1001 | 1017 | | |
1002 | 1018 | | |
1003 | 1019 | | |
1004 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1005 | 1026 | | |
1006 | | - | |
| 1027 | + | |
1007 | 1028 | | |
1008 | 1029 | | |
1009 | 1030 | | |
| |||
1027 | 1048 | | |
1028 | 1049 | | |
1029 | 1050 | | |
1030 | | - | |
| 1051 | + | |
1031 | 1052 | | |
1032 | 1053 | | |
1033 | | - | |
| 1054 | + | |
1034 | 1055 | | |
1035 | 1056 | | |
1036 | 1057 | | |
| |||
1103 | 1124 | | |
1104 | 1125 | | |
1105 | 1126 | | |
1106 | | - | |
| 1127 | + | |
1107 | 1128 | | |
1108 | 1129 | | |
1109 | 1130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments