summaryrefslogtreecommitdiffstats
path: root/include/linux/tegra_profiler.h
Commit message (Collapse)AuthorAge
* misc: tegra-profiler: add task comm eventsIgor Nabirushkin2019-04-11
| | | | | | | | | | | | | | | | | | | | Add task COMM events: - Add support for quadd_event_comm() callback. - Send task COMM events to userspace. Bug 2514095 Jira DTSP-2432 Change-Id: Id5b92f544497b69098e3b16bf82baf0f6abb77e1 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2027490 (cherry picked from commit a0c0d3bf9eeabbdad2a43b768235e1cc846b04ef) Reviewed-on: https://git-master.nvidia.com/r/2093405 GVS: Gerrit_Virtual_Submit Reviewed-by: Roman Rybalko <rrybalko@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* include: uapi: move tegra_profiler header fileAnuj Gangwar2019-04-11
| | | | | | | | | | | | | | | | | | | | Creating new file tegra_profiler.h in include/uapi/linux/. The File has uapi definitions which copied from linux/tegra_profiler.h. Removing the IOCTL definitions in linux/tegra_profiler.h. Bug 2062672 Change-Id: I0e756617cd4e55c03dc6013c9aff3d74d0c1232b Signed-off-by: Anuj Gangwar <anujg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2027220 (cherry picked from commit 700cc51c4e2e91f914455622477f004adcb22ada) Reviewed-on: https://git-master.nvidia.com/r/2093404 GVS: Gerrit_Virtual_Submit Reviewed-by: Roman Rybalko <rrybalko@nvidia.com> Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-profiler: power_clk: fix possible deadlockIgor Nabirushkin2019-02-14
| | | | | | | | | | | | | | | | | | | | | | | - power_clk: There is a potential deadlock if clk_notifier_unregister() happens during XXXX_notifier_call() callback. Use mutex_trylock() to prevent a possible deadlock. - power_rate samples: Do not send unchanged values. Bug 2491022 Jira DTSP-2248 Change-Id: I53eac956728de88ca645a0ae7ca4e3eb66b2c570 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2016234 (cherry picked from commit a26746d7350d89a351592cf1d0e7b78996b1c342) Reviewed-on: https://git-master.nvidia.com/r/2018190 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Antipov <dantipov@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra-profiler: dwarf: support multiple processesIgor Nabirushkin2019-01-18
| | | | | | | | | | | | | | | | | | | | - Support DWARF/ARM-EHABI unwinding for multiple processes. - Add cpu_id for MMAP samples. Bug 2438564 Jira DTSP-824 Jira DTSP-1599 Change-Id: I998906011cff240b9a554cd40679cd9ec9c0f7b7 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1945653 (cherry picked from commit 20e2cf7d2509dfc4708f4a3720aee26852998f13) Reviewed-on: https://git-master.nvidia.com/r/1992080 Reviewed-by: Dmitry Antipov <dantipov@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* misc: tegra-profiler: add kernel thread flagIgor Nabirushkin2018-08-26
| | | | | | | | | | | | | | | | | - Add Kernel thread flag for Sched and Composite events. - Minor changes in output structures. Bug 2340122 JIRA DTSP-462 Change-Id: Ifcfa36930612cfc4d601fefd3b2386fcda797b75 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1804055 Reviewed-by: Roman Rybalko <rrybalko@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* misc: tegra-profiler: add fork/exit callbacksIgor Nabirushkin2018-08-17
| | | | | | | | | | | | | | | | Add support for create_task/exit_task callbacks. Bug 2330448 JIRA DTSP-410 Change-Id: I2d5169d94b5db0f208b002c69555fddfd1e4ab70 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1800135 Reviewed-by: Dmitry Antipov <dantipov@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* misc: tegra-profiler: sample multiple processesIgor Nabirushkin2018-04-18
| | | | | | | | | | | | | | | | | | - Sample multiple processes. Add a few new modes. - Fix possible crash in d_path() during multiple execs. Bug 2104957 Bug 2100416 Change-Id: Iab1568de9365e1c719b45c65f490bbd212995b69 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1696670 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Antipov <dantipov@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* misc: tegra-profiler: force to use cntvctIgor Nabirushkin2018-02-19
| | | | | | | | | | | | | | | | | | - Add a parameter to force use of CNTVCT register for timestamps. - Always verify the profiled process in case when "sampling" flag is enabled. Bug 2063579 Change-Id: Ia7a6d7e797b2d4c9d3eac7827adece638d9cf3ab Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1660718 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Antipov <dantipov@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* misc: tegra-profiler: add sampling modeIgor Nabirushkin2018-02-09
| | | | | | | | | | | | | | | | | Implement ability to fully turn off the sampling. Bug 2053360 Change-Id: I6e127f40fb876d95e1db235cb8926a7ed421b8c6 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1652082 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dmitry Antipov <dantipov@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* misc: tegra-profiler: send virtual idsIgor Nabirushkin2017-09-11
| | | | | | | | | | | | | | | | | | | Sched events: send virtual pid and tgid of the current task (from the pid namespace). This is useful for correlation between ids coming from the kernel module with ids coming from the injection library. Bug 1963327 Change-Id: Ie825afee503092c3cd162bc043ab6b344cd17a67 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1551258 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dmitry Antipov <dantipov@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
* misc: tegra-profiler: send virtual idsIgor Nabirushkin2017-08-03
| | | | | | | | | | | | | | | | | Send virtual pid and tgid of the current task (from the pid namespace). This is useful for correlation between ids coming from the kernel module with ids coming from the injection library. Bug 1963327 Change-Id: I8e15a9803730ef443ada528e39116056b05157a2 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1525176 (cherry picked from commit ee3f90e2c768558107c7ee43a3f7378418214600) Reviewed-on: https://git-master.nvidia.com/r/1530291 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
* misc: tegra-profiler: add overhead informationIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | Add profiler overhead information: store duration of the profiler sampling period in the tail of sample. Bug 1939233 Change-Id: Ifbfb0b98ed8c6ffeec8af96b682761f3fd3d2d61 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/1496893 (cherry picked from commit eb061ee4457f2ff5b271f133c14f553759acab6f) Reviewed-on: http://git-master/r/1498523
* misc: tegra-profiler: support raw hardware eventsIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | Support arbitrary raw hardware PMU events. There are also a few minor changes in procfs output. Bug 1923017 Change-Id: I490817d4dba10100d7450572835c45dcba8cac32 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/1478869 (cherry picked from commit 83d257b17e00e97b3c2fc93e8a2b142c7074c23f) Reviewed-on: http://git-master/r/1482903
* misc: tegra-profiler: use power-of-2 sized bufferIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | | Kernel/User-space circle buffers: - Use power-of-2 sized buffers to reduce overhead - Use the common circular buffer macros Bug 1881997 Change-Id: I664f4745e625cc4cd395d1683eada191abe12624 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/1315654 (cherry picked from commit a7971b07d3f04fe424a3506ae665214e76abecb4) Reviewed-on: http://git-master/r/1321052
* misc: tegra-profiler: add timestamps to mmap eventIgor Nabirushkin2017-07-13
| | | | | | | | | | | | - Add timestamps to mmap events. - Add size of sample data (useful for user space). Bug 1825161 Change-Id: I13d63f938d891eac1e697fab1d6118a57a5faa4b Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/1236248 (cherry picked from commit a579114554384f5ec497e9c954032ac7ccc9d6a7)
* misc: tegra-profiler: enable multiprocess supportArul Sekar2017-07-13
| | | | | | | | | | | | | - support multi process profiling requests from user - uses trace_all_tasks parameter - skip kernel swapper (pid == 0) tasks Bug 1764640 Change-Id: I1f0e2d4432d095b1e6e4db0781be9ce355bf23ed Signed-off-by: Arul Sekar <aruls@nvidia.com> Reviewed-on: http://git-master/r/1159366 (cherry picked from commit 4cc1ec7b7bc5625b7720b435f0269b461476a5a3)
* misc: tegra-profiler: support multiple PMUsAlexey Kravets2017-07-13
| | | | | | | | | | | | | | Support multiple PMUs in tegra profiler module. Allow per-CPU capabilities query and per-CPU PMU setup. Bug 1694191 Bug 200142156 Change-Id: I10e1779aa76814b1615610f1acdb700875349607 Signed-off-by: Alexey Kravets <akravets@nvidia.com> Reviewed-on: http://git-master/r/812877 Reviewed-on: http://git-master/r/824696 (cherry picked from commit 54cd868c2f6964a61c2c653d2ad06e666fcb291d)
* misc: tegra-profiler: add cpu notifierIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | Detect when the CPU goes online/offline. Bug 1634024 Change-Id: I989a9aefbc32a70070b37fe42ce5dcf75b18263b Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/729497 (cherry picked from commit a2eec5a5ea12fb50e073b322ca9d948818179968) Reviewed-on: http://git-master/r/777290 (cherry picked from commit 311adde13b597916cbda1d00bd619ce75a27152d)
* misc: tegra-profiler: fix broken backtracesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | Unwinding based on arm32 ehabi: fix broken backtraces when all unwind entries are located in exidx section and extab section is not exist. Bug 1625585 Change-Id: I800e1347b04aa2c2c8802b81478931985c19feb2 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/720598 (cherry picked from commit 4caa6c584dbaf62625115883259172f45da5b29d)
* misc: tegra-profiler: add unwind entry checkingDmitry Antipov2017-07-13
| | | | | | | | | | | Use simple disassembler to verify unwind table entry against function code. Bug 1618651 Signed-off-by: Dmitry Antipov <dantipov@nvidia.com> Change-Id: Ib75b50f1bb753b7358fcc08107bfefc3133b4f0c Reviewed-on: http://git-master/r/714784 (cherry picked from commit a97c7b8fe35e29eea8bad5ac0176d1e561736840)
* misc: tegra-profiler: add unwind reason codesIgor Nabirushkin2017-07-13
| | | | | | | | | | | Unwinding: store individual URC codes for each method. Bug 1624134 Change-Id: I3b2045f9c9147354f3440e326fd3aeccb5e0458d Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/717848 (cherry picked from commit c8aad67a838fb7d5fd7042f483afcd55e0376903)
* misc: tegra-profiler: add task statesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | * Add task states into sched samples. * Store task exit_state field. Bug 1624099 Change-Id: I4a25aa6c15b59da987688342478127dccc5c0a1c Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/717839 (cherry picked from commit f4152f60e27c63bedabf845a3f417c15d4f4b1b4)
* misc: tegra-profiler: add unwind reason codesIgor Nabirushkin2017-07-13
| | | | | | | | | | | Add unwind reason codes for dwarf unwinding. Bug 1611073 Change-Id: Ic7f324f526ba34505e3b9bbedae7b98c29ce097d Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/711654 (cherry picked from commit 77f2f4d6d3361606a6458db4a41ddc265ed3b044)
* misc: tegra-profiler: support eh_frame sectionsIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Support dwarf unwinding for arm32 files (based on eh_frame sections). Bug 1611069 Change-Id: Ie057ebcfcff75ccb2d3e62aa7cb85ac4b090930c Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/707903 (cherry picked from commit 79ceb0493ed8e5619ea2394cd76a927ad49a74ec)
* tegra-profiler: record offset of the stack pointerIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: when collecting backtraces, record remaining data stack size. Bug 1584533 Change-Id: I608ab73f8e1b7da84221a17a782080fdf5598111 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/658431 (cherry picked from commit 227b2248af0fd2193741ee34d5cc0b141bd57dd2)
* misc: tegra-profiler: add lower bound of memoryIgor Nabirushkin2017-07-13
| | | | | | | | | | | Tegra Profiler: add lower bound of memory for unwinding. Bug 1574379 Change-Id: Ia3c412caa0c2adfe603c08b3916bd57f3ea14255 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/594457 (cherry picked from commit 3bc71d03c116ab2151b72edc16d347b131c62059)
* misc: tegra-profiler: use mmap for samplesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: send samples via memory mapping areas to the user space. Bug 1566270 Change-Id: I19aae4ca1f8d6a3ae7c36e99fb018d8fcd2152d3 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/559124 (cherry picked from commit 8fce918bcd800c2dde9b40e806cf523e1a4d8d61)
* misc: tegra-profiler: add time source optionIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | * Add time source option (CNTVCT or kernel monotonic clock). * Do not use arch timer if user does not have direct access to CNTVCT register. Bug 1508327 Change-Id: I0efc619146c1256ac57120b8646ecd8e819a1315 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/427620 (cherry picked from commit 48d251b3b70aeaa14e8532223f7c418041ac1a37)
* misc: tegra-profiler: mixed backtracesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Unwinding: switch from code with frame pointers to code with unwind tables. Bug 1487488 Change-Id: I254a8fd762b5312f854db1fe79635a2b419091f0 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/419384 (cherry picked from commit 90187333223a2cb668846621b1b87f4cd3fd4083)
* misc: tegra-profiler: add sched samplesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: capture task starting being scheduled on a core. Add sched in/out samples. Bug 1520808 Change-Id: I2c62e5c1918bdba0fc997d79d8aeb3b7b63530f0 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/419352 (cherry picked from commit 1b62471653d9b60f1f68596ca89a8c1d10c49cae)
* misc: tegra-profiler: use cntvct as time sourceIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: use Virtual Count register (CNTVCT) as time source. Bug 1508327 Change-Id: If37e2dbe0a256ec28575d7c1b7d601d6bc1090f5 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/419305 (cherry picked from commit 342841b25957e067b089b2e505f449df79bfe799)
* misc: tegra-profiler: add unwind informationIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: add additional unwind information for each call entry. Bug 1514626 Change-Id: I2873941a4c903e0e7e909897ead55eb34d80b966 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/410770 (cherry picked from commit 3597379503f789af773cde3d0d6bf1b76e6e4926)
* misc: tegra-profiler: support too deep stack levelIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | | Too deep stack level: handle it properly. Appropriate unwind reason code has been added. Unwinding based on frame pointers: add unwind reason codes. Bug 200005380 Change-Id: I2199df90c746ada6a7f224a8b675638b69dc6da8 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/410717 (cherry picked from commit f0bd2d814185db5182920156b5c7b9dd3bbf5541)
* tegra-profiler: add access to the exception tablesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: add access to the exception tables via mmap areas. Do not read directly from the user space. Bug 200002243 Change-Id: I442daaecb11fd4416b3e485722efdf34234e0241 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/405671 (cherry picked from commit 55e189aee4a9c6ed69e183e97199206cf98b0845)
* misc: tegra-profiler: add additional validationsIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Unwinding: add additional validations for stack pointer and instruction pointer. Bug 1495325 Change-Id: Idc8b88be51925b67b8cfc5416ae2204f82f24b41 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/392927 (cherry picked from commit 980e538d4ee185d5806a1d8d3cdc75cbacb7e391)
* misc: tegra-profiler: add mixed unwinding modeIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: do not break the chains for mixed code - code with exception-handling tables and code with frame pointers Bug 1487488 Change-Id: I4fdc6708ef2b4e86b354e5a9daeaa19689abb2dd Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/386241 (cherry picked from commit 2ae5a301c01b8b1631eeb3deefa91077988d805f)
* misc: tegra-profiler: support special mappingsIgor Nabirushkin2017-07-13
| | | | | | | | | | | Tegra Profiler: support special architecture mappings Bug 1480667 Change-Id: I2f1bd67d99888d39bc713a5c58d295b121ad18b2 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/381407 (cherry picked from commit 9ad39eec0f8bda2b94e542271e53a5d09f7f53a9)
* misc: tegra-profiler: Add t132 supportIgor Nabirushkin2017-07-13
| | | | | | | | | | | Tegra Profiler: add support for t132 Bug 1475730 Change-Id: Id54fe70713c038757e3dfab9fa8b35682f50da73 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/378297 (cherry picked from commit dad30dd6471594ce9031e584b32e82a96e6f974f)
* misc: tegra_profiler: add unwindingIgor Nabirushkin2017-07-13
| | | | | | | | | | | Tegra Profiler: unwinding based on exception-handling tables Bug 1465331 Change-Id: I9e8bb2eb342c5dadf82af05bb87040c0925cca1b Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/370036 (cherry picked from commit 2d6f923fa85bf67f3ec9fbd944785582df1d5f46)
* misc: tegra-profiler: reduce size of sampleIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: reduce size of sample magic number was removed Bug 1447839 Change-Id: I14a23f668eab575add872daa35f27653eff643ff Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/360353 (cherry picked from commit 1f65fb0125e85d8ec3bf0af4c946a6fbc6539efd)
* misc: tegra-profiler: add user_mode flagIgor Nabirushkin2017-07-13
| | | | | | | | | | | Tegra Profiler: add user_mode flag into mmap sample Bug 1447904 Change-Id: Ieba1025abac78b2682c0445e608fd0137dbe2379 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/360340 (cherry picked from commit 7083f4a1e8632cd60b808cce9099855ec3875415)
* misc: tegra-profiler: use mmap callsIgor Nabirushkin2017-07-13
| | | | | | | | | | | Tegra Profiler: add mmap calls Bug 1447662 Change-Id: I96614ab3c320fd028cf861ea970b5199bdcae1c7 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/360152 (cherry picked from commit 62a6514bb8006e1f2c2efcd0e7f82cd202638dc9)
* misc: tegra-profiler: add thread state fieldIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: state, in_interrupt fields were added into samples Bug 1447655 Change-Id: I082b63ff854da34df45160a6f07dbe5ee73ca7f7 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/360145 (cherry picked from commit f638741816446a9d3bb30b146862cfbb1caa123e)
* misc: tegra-profiler: add start/stop locksIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Locks for ability to use loadable module to override the built-in driver on rooted devices Bug 1447640 Change-Id: If20605597d77a0cf76206fbe2f474c8853696a9b Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/360134 (cherry picked from commit c0597837c5f4f0781fa0d7a87857d38e9da30995)
* misc: tegra-profiler: add group samplesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | | Group CPU cycles and cache misses samples. To reduce the amount of data passed from the target to the host, we can group samples that have a lot of common information. Bug 1447582 Change-Id: I9b16bf4f18455ff6219fd58373eceba4cb71e352 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/360133 (cherry picked from commit c71f7e558a9c36752d8f845a17e64aaa9ccf90a2)
* misc: tegra-profiler: send mapped memory regionsIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler: send information about mapped memory regions (on demand) Bug 1394970 Change-Id: I3c4755724108ba3bca39ef63f9b76f9598f00478 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/303360 (cherry picked from commit 98407a6c2f107102754ca1587e9800af9e09bde9)
* tegra-profiler: backtraces from the kernel contextIgor Nabirushkin2017-07-13
| | | | | | | | | | | Tegra Profiler: collect backtraces from the kernel context Bug 1394804 Change-Id: I02ad4d0798802a4515e9f015c83d0dfc1d06ed6d Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/303305 (cherry picked from commit 87be15af741d8edbeb095cdbcfb62397bd3f5b18)
* misc: tegra-profiler: add /proc/quadd/statusIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Add /proc/quadd/status It allows users to see current status of the Tegra Profiler. Bug 1374376 Change-Id: I6b770b38c31b5a46ce287ad5107707adb39bd253 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/298733 (cherry picked from commit 28d6dd6942cd8d8af7435a4610ebbf199f0cce0a)
* misc: tegra-profiler: add thumb flag into samplesIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler misc driver: thumb mode flag was added into samples Bug 1374335 Change-Id: Ie80e6508ed2a35b73ca5e65fd31d41f99220a252 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/298731 (cherry picked from commit 2513883dece333fa10f656dc3d354030c32dbfaa)
* misc: tegra-profiler: send buffer fill countIgor Nabirushkin2017-07-13
| | | | | | | | | | | | Tegra Profiler misc driver: transmit the maximum buffer occupancy to the user space. Bug 1374266 Change-Id: Id078083a5493552c1f3bb697a1d3e4a5504e3f82 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/298725 (cherry picked from commit 62fb9454f0348ae22c48f74803d60bfb129b93cf)