PageSourceSearch

https://www.parca.dev/docs/assets/js/1fd10228.9ae3cb0e.js

js parca.dev collected 2026-10-03 21:34:24 UTC 5,584 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkparca_dev=globalThis.webpackChunkparca_dev||[]).push([[7975],{5680(e,t,r){r.d(t,{xA:()=>l,yg:()=>c});var n=r(6540);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=n.createContext({}),d=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},l=function(e){var t=d(e.components);return n.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef(function(e,t){var r=e.components,i=e.mdxType,a=e.originalType,u=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),f=d(r),c=i,g=f["".concat(u,".").concat(c)]||f[c]||p[c]||a;return r?n.createElement(g,o(o({ref:t},l),{},{components:r})):n.createElement(g,o({ref:t},l))});function c(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=r.length,o=new Array(a);o[0]=f;var s={};for(var u in t)hasOwnProperty.call(t,u)&&(s[u]=t[u]);s.originalType=e,s.mdxType="string"==typeof e?e:i,o[1]=s;for(var d=2;d<a;d++)o[d]=r[d];return n.createElement.apply(null,o)}return n.createElement.apply(null,r)}f.displayName="MDXCreateElement"},4609(e,t,r){r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>o,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>d});var n=r(8168),i=(r(6540),r(5680));const a={},o="debuginfod support",s={unversionedId:"debuginfod",id:"debuginfod",title:"debuginfod support",description:"This page assumes familiarity with what debuginfos are. First read the debuginfos docs page if you are not already familiar with debuginfos.",source:"@site/docs/debuginfod.md",sourceDirName:".",slug:"/debuginfod",permalink:"/docs/debuginfod",draft:!1,editUrl:"https://github.com/parca-dev/parca.dev/edit/main/docs/debuginfod.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Debuginfos",permalink:"/docs/debuginfos"},next:{title:"Observability for Parca",permalink:"/docs/observability"}},u={},d=[{value:"Additional Resources",id:"additional-resources",level:2}],l={toc:d};function p({components:e,...t}){return(0,i.yg)("wrapper",(0,n.A)({},l,t,{components:e,mdxType:"MDXLayout"}),(0,i.yg)("h1",{id:"debuginfod-support"},"debuginfod support"),(0,i.yg)("admonition",{type:"tip"},(0,i.yg)("p",{parentName:"admonition"},"This page assumes familiarity with what debuginfos are. First read the ",(0,i.yg)("a",{parentName:"p",href:"debuginfos"},"debuginfos")," docs page if you are not already familiar with debuginfos.")),(0,i.yg)("p",null,"Unfortunately, packages distributed by various Linux distros ",(0,i.yg)("a",{parentName:"p",href:"https://man7.org/linux/man-pages/man1/strip.1.html"},"strip")," away debuginfos to minimize the size of the binaries."),(0,i.yg)("p",null,"Thankfully, there are publicly accessible servers, distributing debuginfos for various Linux package managers and distributions."),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://www.mankier.com/8/debuginfod"},"debuginfod")," is an HTTP file server that serves debuginfos to clients based on the Build IDs of the binaries. You can find out the Build ID of a binary using the ",(0,i.yg)("inlineCode",{parentName:"p"},"file")," command on Linux."),(0,i.yg)("p",null,"Here is an example to find out the Build ID of a zsh binary:"),(0,i.yg)("pre",null,(0,i.yg)("code",{parentName:"pre"},"$ file /bin/zsh\n\n/bin/zsh: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=24fcd0179bb3aa797de6a570c2359e528f7638c0, for GNU/Linux 3.2.0, str
1ipped\n")),(0,i.yg)("p",null,"Parca integrates with debuginfod to query for upstream debuginfod files and then stores them for potential later use. The default debuginfod server used by Parca is: ",(0,i.yg)("a",{parentName:"p",href:"https://debuginfod.elfutils.org"},"https://debuginfod.elfutils.org")),(0,i.yg)("p",null,"To use a different set of debuginfod servers to attempt to retrieve debuginfos from use the ",(0,i.yg)("inlineCode",{parentName:"p"},"--debuginfod-upstream-servers")," flag."),(0,i.yg)("h2",{id:"additional-resources"},"Additional Resources"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},"debuginfod ",(0,i.yg)("a",{parentName:"li",href:"https://www.mankier.com/8/debuginfod#Webapi"},"web api")),(0,i.yg)("li",{parentName:"ul"},"debuginfod client/server ",(0,i.yg)("a",{parentName:"li",href:"https://sourceware.org/git/?p=elfutils.git;a=tree;f=debuginfod;h=066a691bde5a7a21a18173e5c5babfd1838fa6f5;hb=HEAD"},"source code"))))}p.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.