Title: perf maps address format · Issue #103650 · python/cpython · GitHub
Open Graph Title: perf maps address format · Issue #103650 · python/cpython
X Title: perf maps address format · Issue #103650 · python/cpython
Description: Bug report As implemented by @pablogsal in #96123 we can now generate perf maps(which is awesome BTW). Currently, perf maps are formatted this way: 0x58c5882 b py::
Open Graph Description: Bug report As implemented by @pablogsal in #96123 we can now generate perf maps(which is awesome BTW). Currently, perf maps are formatted this way: 0x58c5882 b py::
X Description: Bug report As implemented by @pablogsal in #96123 we can now generate perf maps(which is awesome BTW). Currently, perf maps are formatted this way: 0x58c5882 b py::<module>:/home/arthur/Proje...
Opengraph URL: https://github.com/python/cpython/issues/103650
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"perf maps address format","articleBody":"# Bug report\r\n\r\nAs implemented by @pablogsal in #96123 we can now generate perf maps(which is awesome BTW).\r\nCurrently, perf maps are formatted this way:\r\n```\r\n0x58c5882 b py::\u003cmodule\u003e:/home/arthur/Projects/python-playground/dummy_script.py\r\n0x58c588d b py::baz:/home/arthur/Projects/python-playground/dummy_script.py\r\n0x58c5898 b py::bar:/home/arthur/Projects/python-playground/dummy_script.py\r\n0x58c58a3 b py::foo:/home/arthur/Projects/python-playground/dummy_script.py\r\n```\r\n\r\nHowever, as per the [perf maps interface specification](https://github.com/torvalds/linux/blob/master/tools/perf/Documentation/jit-interface.txt) it seems the address should not include the leading `0x`. \r\n\r\nThus the perf map should look like this:\r\n```\r\n58c5882 b py::\u003cmodule\u003e:/home/arthur/Projects/python-playground/dummy_script.py\r\n58c588d b py::baz:/home/arthur/Projects/python-playground/dummy_script.py\r\n58c5898 b py::bar:/home/arthur/Projects/python-playground/dummy_script.py\r\n58c58a3 b py::foo:/home/arthur/Projects/python-playground/dummy_script.py\r\n```\r\n \r\nStill, it works fine with `perf` but might not with other tools not handling this leading `0x`.\r\n\r\n# Your environment\r\n\r\n- CPython versions tested on: 3.12.0a7\r\n- Operating system and architecture: Manjaro 22.1.0 x86_64\r\n\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-103651\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/art049","@type":"Person","name":"art049"},"datePublished":"2023-04-20T15:47:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/103650/cpython/issues/103650"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd30a3d0-d587-ab06-61cd-75ac61662b62 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD30:2D5987:118EE8B:17B5AD3:6969965E |
| html-safe-nonce | 0ca3531a94c003421d63e789bcc190a26a4d9bb7a7e60d516492887a35e67f91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDMwOjJENTk4NzoxMThFRThCOjE3QjVBRDM6Njk2OTk2NUUiLCJ2aXNpdG9yX2lkIjoiMTEyMDQwODg1NzM0NzcyNDg5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 67dfa8ad37f151cd9bffc356c04adbee5fc39e1c90b774c1ee89179754390a6a |
| hovercard-subject-tag | issue:1676989074 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/103650/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cf06663420f725753522941ab36db9399782adfcdfca8ca3f637032c6b8c0e5/python/cpython/issues/103650 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cf06663420f725753522941ab36db9399782adfcdfca8ca3f637032c6b8c0e5/python/cpython/issues/103650 |
| og:image:alt | Bug report As implemented by @pablogsal in #96123 we can now generate perf maps(which is awesome BTW). Currently, perf maps are formatted this way: 0x58c5882 b py:: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | art049 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width