collab/polyglot-riscv-arm
what if the same machine code was valid riscv and arm asm
git clone https://git.julia.blue/collab/polyglot-riscv-arm
885cc4e
main
1<? xml version = " 1.0 " standalone = " no "?><! DOCTYPE svg PUBLIC " -//W3C//DTD SVG 1.1//EN " " http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd ">< svg version = " 1.1 " width = " 1200 " height = " 422 " onload = " init(evt) " viewBox = " 0 0 1200 422 " xmlns = " http://www.w3.org/2000/svg " xmlns:xlink = " http://www.w3.org/1999/xlink " xmlns:fg = " http://github.com/jonhoo/inferno "> <!--Flame graph stack visualization. See https://github.com/brendangregg/FlameGraph for latest version, and http://www.brendangregg.com/flamegraphs.html for examples.--><!--NOTES: --> < defs >< linearGradient id = " background " y1 = " 0 " y2 = " 1 " x1 = " 0 " x2 = " 0 ">< stop stop-color = " #eeeeee " offset = " 5% "/>< stop stop-color = " #eeeeb0 " offset = " 95% "/></ linearGradient ></ defs >< style type = " text/css "> 2text { font-family:monospace; font-size:12px } 3#title { text-anchor:middle; font-size:17px; } 4#matched { text-anchor:end; } 5#search { text-anchor:end; opacity:0.1; cursor:pointer; } 6#search:hover, #search.show { opacity:1; } 7#subtitle { text-anchor:middle; font-color:rgb(160,160,160); } 8#unzoom { cursor:pointer; } 9#frames > *:hover { stroke:black; stroke-width:0.5; cursor:pointer; } 10.hide { display:none; } 11.parent { opacity:0.5; } 12</ style >< script type = " text/ecmascript "> <![CDATA [ 13var nametype = 'Function:'; 14var fontsize = 12; 15var fontwidth = 0.59; 16var xpad = 10; 17var inverted = false; 18var searchcolor = 'rgb(230,0,230)'; 19var fluiddrawing = true; 20var truncate_text_right = false; 21]]><![CDATA [ "use strict"; 22var details, searchbtn, unzoombtn, matchedtxt, svg, searching, frames, known_font_width; 23function init(evt) { 24details = document.getElementById("details").firstChild; 25searchbtn = document.getElementById("search"); 26unzoombtn = document.getElementById("unzoom"); 27matchedtxt = document.getElementById("matched"); 28svg = document.getElementsByTagName("svg")[0]; 29frames = document.getElementById("frames"); 30known_font_width = get_monospace_width(frames); 31total_samples = parseInt(frames.attributes.total_samples.value); 32searching = 0; 33 34// Use GET parameters to restore a flamegraph's state. 35var restore_state = function() { 36var params = get_params(); 37if (params.x && params.y) 38zoom(find_group(document.querySelector('[*|x="' + params.x + '"][y="' + params.y + '"]'))); 39if (params.s) 40search(params.s); 41}; 42 43if (fluiddrawing) { 44// Make width dynamic so the SVG fits its parent's width. 45svg.removeAttribute("width"); 46// Edge requires us to have a viewBox that gets updated with size changes. 47var isEdge = /Edge\/\d./i.test(navigator.userAgent); 48if (!isEdge) { 49svg.removeAttribute("viewBox"); 50} 51var update_for_width_change = function() { 52if (isEdge) { 53svg.attributes.viewBox.value = "0 0 " + svg.width.baseVal.value + " " + svg.height.baseVal.value; 54} 55 56// Keep consistent padding on left and right of frames container. 57frames.attributes.width.value = svg.width.baseVal.value - xpad * 2; 58 59// Text truncation needs to be adjusted for the current width. 60update_text_for_elements(frames.children); 61 62// Keep search elements at a fixed distance from right edge. 63var svgWidth = svg.width.baseVal.value; 64searchbtn.attributes.x.value = svgWidth - xpad; 65matchedtxt.attributes.x.value = svgWidth - xpad; 66}; 67window.addEventListener('resize', function() { 68update_for_width_change(); 69}); 70// This needs to be done asynchronously for Safari to work. 71setTimeout(function() { 72unzoom(); 73update_for_width_change(); 74restore_state(); 75}, 0); 76} else { 77restore_state(); 78} 79} 80// event listeners 81window.addEventListener("click", function(e) { 82var target = find_group(e.target); 83if (target) { 84if (target.nodeName == "a") { 85if (e.ctrlKey === false) return; 86e.preventDefault(); 87} 88if (target.classList.contains("parent")) unzoom(); 89zoom(target); 90 91// set parameters for zoom state 92var el = target.querySelector("rect"); 93if (el && el.attributes && el.attributes.y && el.attributes["fg:x"]) { 94var params = get_params() 95params.x = el.attributes["fg:x"].value; 96params.y = el.attributes.y.value; 97history.replaceState(null, null, parse_params(params)); 98} 99} 100else if (e.target.id == "unzoom") { 101unzoom(); 102 103// remove zoom state 104var params = get_params(); 105if (params.x) delete params.x; 106if (params.y) delete params.y; 107history.replaceState(null, null, parse_params(params)); 108} 109else if (e.target.id == "search") search_prompt(); 110}, false) 111// mouse-over for info 112// show 113window.addEventListener("mouseover", function(e) { 114var target = find_group(e.target); 115if (target) details.nodeValue = nametype + " " + g_to_text(target); 116}, false) 117// clear 118window.addEventListener("mouseout", function(e) { 119var target = find_group(e.target); 120if (target) details.nodeValue = ' '; 121}, false) 122// ctrl-F for search 123window.addEventListener("keydown",function (e) { 124if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) { 125e.preventDefault(); 126search_prompt(); 127} 128}, false) 129// functions 130function get_params() { 131var params = {}; 132var paramsarr = window.location.search.substr(1).split('&'); 133for (var i = 0; i < paramsarr.length; ++i) { 134var tmp = paramsarr[i].split("="); 135if (!tmp[0] || !tmp[1]) continue; 136params[tmp[0]] = decodeURIComponent(tmp[1]); 137} 138return params; 139} 140function parse_params(params) { 141var uri = "?"; 142for (var key in params) { 143uri += key + '=' + encodeURIComponent(params[key]) + '&'; 144} 145if (uri.slice(-1) == "&") 146uri = uri.substring(0, uri.length - 1); 147if (uri == '?') 148uri = window.location.href.split('?')[0]; 149return uri; 150} 151function find_child(node, selector) { 152var children = node.querySelectorAll(selector); 153if (children.length) return children[0]; 154return; 155} 156function find_group(node) { 157var parent = node.parentElement; 158if (!parent) return; 159if (parent.id == "frames") return node; 160return find_group(parent); 161} 162function orig_save(e, attr, val) { 163if (e.attributes["fg:orig_" + attr] != undefined) return; 164if (e.attributes[attr] == undefined) return; 165if (val == undefined) val = e.attributes[attr].value; 166e.setAttribute("fg:orig_" + attr, val); 167} 168function orig_load(e, attr) { 169if (e.attributes["fg:orig_"+attr] == undefined) return; 170e.attributes[attr].value = e.attributes["fg:orig_" + attr].value; 171e.removeAttribute("fg:orig_" + attr); 172} 173function g_to_text(e) { 174var text = find_child(e, "title").firstChild.nodeValue; 175return (text) 176} 177function g_to_func(e) { 178var func = g_to_text(e); 179// if there's any manipulation we want to do to the function 180// name before it's searched, do it here before returning. 181return (func); 182} 183function get_monospace_width(frames) { 184// Given the id="frames" element, return the width of text characters if 185// this is a monospace font, otherwise return 0. 186text = find_child(frames.children[0], "text"); 187originalContent = text.textContent; 188text.textContent = "!"; 189bangWidth = text.getComputedTextLength(); 190text.textContent = "W"; 191wWidth = text.getComputedTextLength(); 192text.textContent = originalContent; 193if (bangWidth === wWidth) { 194return bangWidth; 195} else { 196return 0; 197} 198} 199function update_text_for_elements(elements) { 200// In order to render quickly in the browser, you want to do one pass of 201// reading attributes, and one pass of mutating attributes. See 202// https://web.dev/avoid-large-complex-layouts-and-layout-thrashing/ for details. 203 204// Fall back to inefficient calculation, if we're variable-width font. 205// TODO This should be optimized somehow too. 206if (known_font_width === 0) { 207for (var i = 0; i < elements.length; i++) { 208update_text(elements[i]); 209} 210return; 211} 212 213var textElemNewAttributes = []; 214for (var i = 0; i < elements.length; i++) { 215var e = elements[i]; 216var r = find_child(e, "rect"); 217var t = find_child(e, "text"); 218var w = parseFloat(r.attributes.width.value) * frames.attributes.width.value / 100 - 3; 219var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,""); 220var newX = format_percent((parseFloat(r.attributes.x.value) + (100 * 3 / frames.attributes.width.value))); 221 222// Smaller than this size won't fit anything 223if (w < 2 * known_font_width) { 224textElemNewAttributes.push([newX, ""]); 225continue; 226} 227 228// Fit in full text width 229if (txt.length * known_font_width < w) { 230textElemNewAttributes.push([newX, txt]); 231continue; 232} 233 234var substringLength = Math.floor(w / known_font_width) - 2; 235if (truncate_text_right) { 236// Truncate the right side of the text. 237textElemNewAttributes.push([newX, txt.substring(0, substringLength) + ".."]); 238continue; 239} else { 240// Truncate the left side of the text. 241textElemNewAttributes.push([newX, ".." + txt.substring(txt.length - substringLength, txt.length)]); 242continue; 243} 244} 245 246console.assert(textElemNewAttributes.length === elements.length, "Resize failed, please file a bug at https://github.com/jonhoo/inferno/"); 247 248// Now that we know new textContent, set it all in one go so we don't refresh a bazillion times. 249for (var i = 0; i < elements.length; i++) { 250var e = elements[i]; 251var values = textElemNewAttributes[i]; 252var t = find_child(e, "text"); 253t.attributes.x.value = values[0]; 254t.textContent = values[1]; 255} 256} 257 258function update_text(e) { 259var r = find_child(e, "rect"); 260var t = find_child(e, "text"); 261var w = parseFloat(r.attributes.width.value) * frames.attributes.width.value / 100 - 3; 262var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,""); 263t.attributes.x.value = format_percent((parseFloat(r.attributes.x.value) + (100 * 3 / frames.attributes.width.value))); 264 265// Smaller than this size won't fit anything 266if (w < 2 * fontsize * fontwidth) { 267t.textContent = ""; 268return; 269} 270t.textContent = txt; 271// Fit in full text width 272if (t.getComputedTextLength() < w) 273return; 274if (truncate_text_right) { 275// Truncate the right side of the text. 276for (var x = txt.length - 2; x > 0; x--) { 277if (t.getSubStringLength(0, x + 2) <= w) { 278t.textContent = txt.substring(0, x) + ".."; 279return; 280} 281} 282} else { 283// Truncate the left side of the text. 284for (var x = 2; x < txt.length; x++) { 285if (t.getSubStringLength(x - 2, txt.length) <= w) { 286t.textContent = ".." + txt.substring(x, txt.length); 287return; 288} 289} 290} 291t.textContent = ""; 292} 293// zoom 294function zoom_reset(e) { 295if (e.tagName == "rect") { 296e.attributes.x.value = format_percent(100 * parseInt(e.attributes["fg:x"].value) / total_samples); 297e.attributes.width.value = format_percent(100 * parseInt(e.attributes["fg:w"].value) / total_samples); 298} 299if (e.childNodes == undefined) return; 300for(var i = 0, c = e.childNodes; i < c.length; i++) { 301zoom_reset(c[i]); 302} 303} 304function zoom_child(e, x, zoomed_width_samples) { 305if (e.tagName == "text") { 306var parent_x = parseFloat(find_child(e.parentNode, "rect[x]").attributes.x.value); 307e.attributes.x.value = format_percent(parent_x + (100 * 3 / frames.attributes.width.value)); 308} else if (e.tagName == "rect") { 309e.attributes.x.value = format_percent(100 * (parseInt(e.attributes["fg:x"].value) - x) / zoomed_width_samples); 310e.attributes.width.value = format_percent(100 * parseInt(e.attributes["fg:w"].value) / zoomed_width_samples); 311} 312if (e.childNodes == undefined) return; 313for(var i = 0, c = e.childNodes; i < c.length; i++) { 314zoom_child(c[i], x, zoomed_width_samples); 315} 316} 317function zoom_parent(e) { 318if (e.attributes) { 319if (e.attributes.x != undefined) { 320e.attributes.x.value = "0.0%"; 321} 322if (e.attributes.width != undefined) { 323e.attributes.width.value = "100.0%"; 324} 325} 326if (e.childNodes == undefined) return; 327for(var i = 0, c = e.childNodes; i < c.length; i++) { 328zoom_parent(c[i]); 329} 330} 331function zoom(node) { 332var attr = find_child(node, "rect").attributes; 333var width = parseInt(attr["fg:w"].value); 334var xmin = parseInt(attr["fg:x"].value); 335var xmax = xmin + width; 336var ymin = parseFloat(attr.y.value); 337unzoombtn.classList.remove("hide"); 338var el = frames.children; 339var to_update_text = []; 340for (var i = 0; i < el.length; i++) { 341var e = el[i]; 342var a = find_child(e, "rect").attributes; 343var ex = parseInt(a["fg:x"].value); 344var ew = parseInt(a["fg:w"].value); 345// Is it an ancestor 346if (!inverted) { 347var upstack = parseFloat(a.y.value) > ymin; 348} else { 349var upstack = parseFloat(a.y.value) < ymin; 350} 351if (upstack) { 352// Direct ancestor 353if (ex <= xmin && (ex+ew) >= xmax) { 354e.classList.add("parent"); 355zoom_parent(e); 356to_update_text.push(e); 357} 358// not in current path 359else 360e.classList.add("hide"); 361} 362// Children maybe 363else { 364// no common path 365if (ex < xmin || ex >= xmax) { 366e.classList.add("hide"); 367} 368else { 369zoom_child(e, xmin, width); 370to_update_text.push(e); 371} 372} 373} 374update_text_for_elements(to_update_text); 375} 376function unzoom() { 377unzoombtn.classList.add("hide"); 378var el = frames.children; 379for(var i = 0; i < el.length; i++) { 380el[i].classList.remove("parent"); 381el[i].classList.remove("hide"); 382zoom_reset(el[i]); 383} 384update_text_for_elements(el); 385} 386// search 387function reset_search() { 388var el = document.querySelectorAll("#frames rect"); 389for (var i = 0; i < el.length; i++) { 390orig_load(el[i], "fill") 391} 392var params = get_params(); 393delete params.s; 394history.replaceState(null, null, parse_params(params)); 395} 396function search_prompt() { 397if (!searching) { 398var term = prompt("Enter a search term (regexp " + 399"allowed, eg: ^ext4_)", ""); 400if (term != null) { 401search(term) 402} 403} else { 404reset_search(); 405searching = 0; 406searchbtn.classList.remove("show"); 407searchbtn.firstChild.nodeValue = "Search" 408matchedtxt.classList.add("hide"); 409matchedtxt.firstChild.nodeValue = "" 410} 411} 412function search(term) { 413var re = new RegExp(term); 414var el = frames.children; 415var matches = new Object(); 416var maxwidth = 0; 417for (var i = 0; i < el.length; i++) { 418var e = el[i]; 419// Skip over frames which are either not visible, or below the zoomed-to frame 420if (e.classList.contains("hide") || e.classList.contains("parent")) { 421continue; 422} 423var func = g_to_func(e); 424var rect = find_child(e, "rect"); 425if (func == null || rect == null) 426continue; 427// Save max width. Only works as we have a root frame 428var w = parseInt(rect.attributes["fg:w"].value); 429if (w > maxwidth) 430maxwidth = w; 431if (func.match(re)) { 432// highlight 433var x = parseInt(rect.attributes["fg:x"].value); 434orig_save(rect, "fill"); 435rect.attributes.fill.value = searchcolor; 436// remember matches 437if (matches[x] == undefined) { 438matches[x] = w; 439} else { 440if (w > matches[x]) { 441// overwrite with parent 442matches[x] = w; 443} 444} 445searching = 1; 446} 447} 448if (!searching) 449return; 450var params = get_params(); 451params.s = term; 452history.replaceState(null, null, parse_params(params)); 453 454searchbtn.classList.add("show"); 455searchbtn.firstChild.nodeValue = "Reset Search"; 456// calculate percent matched, excluding vertical overlap 457var count = 0; 458var lastx = -1; 459var lastw = 0; 460var keys = Array(); 461for (k in matches) { 462if (matches.hasOwnProperty(k)) 463keys.push(k); 464} 465// sort the matched frames by their x location 466// ascending, then width descending 467keys.sort(function(a, b){ 468return a - b; 469}); 470// Step through frames saving only the biggest bottom-up frames 471// thanks to the sort order. This relies on the tree property 472// where children are always smaller than their parents. 473for (var k in keys) { 474var x = parseInt(keys[k]); 475var w = matches[keys[k]]; 476if (x >= lastx + lastw) { 477count += w; 478lastx = x; 479lastw = w; 480} 481} 482// display matched percent 483matchedtxt.classList.remove("hide"); 484var pct = 100 * count / maxwidth; 485if (pct != 100) pct = pct.toFixed(1); 486matchedtxt.firstChild.nodeValue = "Matched: " + pct + "%"; 487} 488function format_percent(n) { 489return n.toFixed(4) + "%"; 490} 491]]> </ script >< rect x = " 0 " y = " 0 " width = " 100% " height = " 422 " fill = " url(#background) "/>< text id = " title " fill = " rgb(0,0,0) " x = " 50.0000% " y = " 24.00 "> Flame Graph</ text >< text id = " details " fill = " rgb(0,0,0) " x = " 10 " y = " 405.00 "> </ text >< text id = " unzoom " class = " hide " fill = " rgb(0,0,0) " x = " 10 " y = " 24.00 "> Reset Zoom</ text >< text id = " search " fill = " rgb(0,0,0) " x = " 1190 " y = " 24.00 "> Search</ text >< text id = " matched " fill = " rgb(0,0,0) " x = " 1190 " y = " 405.00 "> </ text >< svg id = " frames " x = " 10 " width = " 1180 " total_samples = " 57 ">< g >< title > perf-exec (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 357 " width = " 8.7719% " height = " 15 " fill = " rgb(227,0,7) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 367.50 "> perf-exec</ text ></ g >< g >< title > entry_SYSCALL_64 (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 341 " width = " 8.7719% " height = " 15 " fill = " rgb(217,0,24) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 351.50 "> entry_SYSCAL..</ text ></ g >< g >< title > do_syscall_64 (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 325 " width = " 8.7719% " height = " 15 " fill = " rgb(221,193,54) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 335.50 "> do_syscall_64</ text ></ g >< g >< title > __x64_sys_execve (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 309 " width = " 8.7719% " height = " 15 " fill = " rgb(248,212,6) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 319.50 "> __x64_sys_ex..</ text ></ g >< g >< title > do_execveat_common.isra.0 (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 293 " width = " 8.7719% " height = " 15 " fill = " rgb(208,68,35) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 303.50 "> do_execveat_..</ text ></ g >< g >< title > bprm_execve (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 277 " width = " 8.7719% " height = " 15 " fill = " rgb(232,128,0) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 287.50 "> bprm_execve</ text ></ g >< g >< title > load_elf_binary (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 261 " width = " 8.7719% " height = " 15 " fill = " rgb(207,160,47) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 271.50 "> load_elf_bin..</ text ></ g >< g >< title > begin_new_exec (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 245 " width = " 8.7719% " height = " 15 " fill = " rgb(228,23,34) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 255.50 "> begin_new_ex..</ text ></ g >< g >< title > perf_event_exec (5 samples, 8.77%)</ title >< rect x = " 0.0000% " y = " 229 " width = " 8.7719% " height = " 15 " fill = " rgb(218,30,26) " fg:x = " 0 " fg:w = " 5 "/>< text x = " 0.2500% " y = " 239.50 "> perf_event_e..</ text ></ g >< g >< title > mutex_lock (4 samples, 7.02%)</ title >< rect x = " 1.7544% " y = " 213 " width = " 7.0175% " height = " 15 " fill = " rgb(220,122,19) " fg:x = " 1 " fg:w = " 4 "/>< text x = " 2.0044% " y = " 223.50 "> mutex_lock</ text ></ g >< g >< title > asm_sysvec_reschedule_ipi (5 samples, 8.77%)</ title >< rect x = " 14.0351% " y = " 197 " width = " 8.7719% " height = " 15 " fill = " rgb(250,228,42) " fg:x = " 8 " fg:w = " 5 "/>< text x = " 14.2851% " y = " 207.50 "> asm_sysvec_r..</ text ></ g >< g >< title > irqentry_exit_to_user_mode (5 samples, 8.77%)</ title >< rect x = " 14.0351% " y = " 181 " width = " 8.7719% " height = " 15 " fill = " rgb(240,193,28) " fg:x = " 8 " fg:w = " 5 "/>< text x = " 14.2851% " y = " 191.50 "> irqentry_exi..</ text ></ g >< g >< title > schedule (5 samples, 8.77%)</ title >< rect x = " 14.0351% " y = " 165 " width = " 8.7719% " height = " 15 " fill = " rgb(216,20,37) " fg:x = " 8 " fg:w = " 5 "/>< text x = " 14.2851% " y = " 175.50 "> schedule</ text ></ g >< g >< title > __schedule (5 samples, 8.77%)</ title >< rect x = " 14.0351% " y = " 149 " width = " 8.7719% " height = " 15 " fill = " rgb(206,188,39) " fg:x = " 8 " fg:w = " 5 "/>< text x = " 14.2851% " y = " 159.50 "> __schedule</ text ></ g >< g >< title > finish_task_switch.isra.0 (5 samples, 8.77%)</ title >< rect x = " 14.0351% " y = " 133 " width = " 8.7719% " height = " 15 " fill = " rgb(217,207,13) " fg:x = " 8 " fg:w = " 5 "/>< text x = " 14.2851% " y = " 143.50 "> finish_task_..</ text ></ g >< g >< title > __perf_event_task_sched_in (4 samples, 7.02%)</ title >< rect x = " 15.7895% " y = " 117 " width = " 7.0175% " height = " 15 " fill = " rgb(231,73,38) " fg:x = " 9 " fg:w = " 4 "/>< text x = " 16.0395% " y = " 127.50 "> __perf_ev..</ text ></ g >< g >< title > perf_ctx_enable (4 samples, 7.02%)</ title >< rect x = " 15.7895% " y = " 101 " width = " 7.0175% " height = " 15 " fill = " rgb(225,20,46) " fg:x = " 9 " fg:w = " 4 "/>< text x = " 16.0395% " y = " 111.50 "> perf_ctx_..</ text ></ g >< g >< title > < std::time::Instant as core::ops::arith::Sub> ::sub (1 samples, 1.75%)</ title >< rect x = " 26.3158% " y = " 181 " width = " 1.7544% " height = " 15 " fill = " rgb(210,31,41) " fg:x = " 15 " fg:w = " 1 "/>< text x = " 26.5658% " y = " 191.50 "></ text ></ g >< g >< title > indicatif::progress_bar::ProgressBar::inc (10 samples, 17.54%)</ title >< rect x = " 22.8070% " y = " 197 " width = " 17.5439% " height = " 15 " fill = " rgb(221,200,47) " fg:x = " 13 " fg:w = " 10 "/>< text x = " 23.0570% " y = " 207.50 "> indicatif::progress_bar::Pr..</ text ></ g >< g >< title > std::sys::pal::unix::time::Timespec::now (7 samples, 12.28%)</ title >< rect x = " 28.0702% " y = " 181 " width = " 12.2807% " height = " 15 " fill = " rgb(226,26,5) " fg:x = " 16 " fg:w = " 7 "/>< text x = " 28.3202% " y = " 191.50 "> std::sys::pal::uni..</ text ></ g >< g >< title > clock_gettime (7 samples, 12.28%)</ title >< rect x = " 28.0702% " y = " 165 " width = " 12.2807% " height = " 15 " fill = " rgb(249,33,26) " fg:x = " 16 " fg:w = " 7 "/>< text x = " 28.3202% " y = " 175.50 "> clock_gettime</ text ></ g >< g >< title > __vdso_clock_gettime (7 samples, 12.28%)</ title >< rect x = " 28.0702% " y = " 149 " width = " 12.2807% " height = " 15 " fill = " rgb(235,183,28) " fg:x = " 16 " fg:w = " 7 "/>< text x = " 28.3202% " y = " 159.50 "> __vdso_clock_getti..</ text ></ g >< g >< title > asm_sysvec_reschedule_ipi (5 samples, 8.77%)</ title >< rect x = " 31.5789% " y = " 133 " width = " 8.7719% " height = " 15 " fill = " rgb(221,5,38) " fg:x = " 18 " fg:w = " 5 "/>< text x = " 31.8289% " y = " 143.50 "> asm_sysvec_r..</ text ></ g >< g >< title > irqentry_exit_to_user_mode (5 samples, 8.77%)</ title >< rect x = " 31.5789% " y = " 117 " width = " 8.7719% " height = " 15 " fill = " rgb(247,18,42) " fg:x = " 18 " fg:w = " 5 "/>< text x = " 31.8289% " y = " 127.50 "> irqentry_exi..</ text ></ g >< g >< title > schedule (5 samples, 8.77%)</ title >< rect x = " 31.5789% " y = " 101 " width = " 8.7719% " height = " 15 " fill = " rgb(241,131,45) " fg:x = " 18 " fg:w = " 5 "/>< text x = " 31.8289% " y = " 111.50 "> schedule</ text ></ g >< g >< title > __schedule (5 samples, 8.77%)</ title >< rect x = " 31.5789% " y = " 85 " width = " 8.7719% " height = " 15 " fill = " rgb(249,31,29) " fg:x = " 18 " fg:w = " 5 "/>< text x = " 31.8289% " y = " 95.50 "> __schedule</ text ></ g >< g >< title > finish_task_switch.isra.0 (5 samples, 8.77%)</ title >< rect x = " 31.5789% " y = " 69 " width = " 8.7719% " height = " 15 " fill = " rgb(225,111,53) " fg:x = " 18 " fg:w = " 5 "/>< text x = " 31.8289% " y = " 79.50 "> finish_task_..</ text ></ g >< g >< title > __perf_event_task_sched_in (5 samples, 8.77%)</ title >< rect x = " 31.5789% " y = " 53 " width = " 8.7719% " height = " 15 " fill = " rgb(238,160,17) " fg:x = " 18 " fg:w = " 5 "/>< text x = " 31.8289% " y = " 63.50 "> __perf_event..</ text ></ g >< g >< title > perf_ctx_enable (5 samples, 8.77%)</ title >< rect x = " 31.5789% " y = " 37 " width = " 8.7719% " height = " 15 " fill = " rgb(214,148,48) " fg:x = " 18 " fg:w = " 5 "/>< text x = " 31.8289% " y = " 47.50 "> perf_ctx_ena..</ text ></ g >< g >< title > indicatif::progress_bar::ProgressBar::tick_inner (2 samples, 3.51%)</ title >< rect x = " 40.3509% " y = " 197 " width = " 3.5088% " height = " 15 " fill = " rgb(232,36,49) " fg:x = " 23 " fg:w = " 2 "/>< text x = " 40.6009% " y = " 207.50 "> ind..</ text ></ g >< g >< title > indicatif::state::BarState::update_estimate_and_draw (2 samples, 3.51%)</ title >< rect x = " 40.3509% " y = " 181 " width = " 3.5088% " height = " 15 " fill = " rgb(209,103,24) " fg:x = " 23 " fg:w = " 2 "/>< text x = " 40.6009% " y = " 191.50 "> ind..</ text ></ g >< g >< title > indicatif::state::BarState::draw (1 samples, 1.75%)</ title >< rect x = " 42.1053% " y = " 165 " width = " 1.7544% " height = " 15 " fill = " rgb(229,88,8) " fg:x = " 24 " fg:w = " 1 "/>< text x = " 42.3553% " y = " 175.50 "></ text ></ g >< g >< title > indicatif::draw_target::Drawable::draw (1 samples, 1.75%)</ title >< rect x = " 42.1053% " y = " 149 " width = " 1.7544% " height = " 15 " fill = " rgb(213,181,19) " fg:x = " 24 " fg:w = " 1 "/>< text x = " 42.3553% " y = " 159.50 "></ text ></ g >< g >< title > console::utils::measure_text_width (1 samples, 1.75%)</ title >< rect x = " 42.1053% " y = " 133 " width = " 1.7544% " height = " 15 " fill = " rgb(254,191,54) " fg:x = " 24 " fg:w = " 1 "/>< text x = " 42.3553% " y = " 143.50 "></ text ></ g >< g >< title > console::utils::str_width (1 samples, 1.75%)</ title >< rect x = " 42.1053% " y = " 117 " width = " 1.7544% " height = " 15 " fill = " rgb(241,83,37) " fg:x = " 24 " fg:w = " 1 "/>< text x = " 42.3553% " y = " 127.50 "></ text ></ g >< g >< title > [libc.so.6] (1 samples, 1.75%)</ title >< rect x = " 63.1579% " y = " 165 " width = " 1.7544% " height = " 15 " fill = " rgb(233,36,39) " fg:x = " 36 " fg:w = " 1 "/>< text x = " 63.4079% " y = " 175.50 "></ text ></ g >< g >< title > < T as alloc::slice::hack::ConvertVec> ::to_vec (5 samples, 8.77%)</ title >< rect x = " 63.1579% " y = " 181 " width = " 8.7719% " height = " 15 " fill = " rgb(226,3,54) " fg:x = " 36 " fg:w = " 5 "/>< text x = " 63.4079% " y = " 191.50 "> < T as alloc:..</ text ></ g >< g >< title > malloc (4 samples, 7.02%)</ title >< rect x = " 64.9123% " y = " 165 " width = " 7.0175% " height = " 15 " fill = " rgb(245,192,40) " fg:x = " 37 " fg:w = " 4 "/>< text x = " 65.1623% " y = " 175.50 "> malloc</ text ></ g >< g >< title > _start (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 341 " width = " 89.4737% " height = " 15 " fill = " rgb(238,167,29) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 351.50 "> _start</ text ></ g >< g >< title > __libc_start_main (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 325 " width = " 89.4737% " height = " 15 " fill = " rgb(232,182,51) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 335.50 "> __libc_start_main</ text ></ g >< g >< title > [libc.so.6] (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 309 " width = " 89.4737% " height = " 15 " fill = " rgb(231,60,39) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 319.50 "> [libc.so.6]</ text ></ g >< g >< title > main (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 293 " width = " 89.4737% " height = " 15 " fill = " rgb(208,69,12) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 303.50 "> main</ text ></ g >< g >< title > std::rt::lang_start_internal (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 277 " width = " 89.4737% " height = " 15 " fill = " rgb(235,93,37) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 287.50 "> std::rt::lang_start_internal</ text ></ g >< g >< title > _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h46c8df623b7ea31eE.llvm.8749872363031919167 (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 261 " width = " 89.4737% " height = " 15 " fill = " rgb(213,116,39) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 271.50 "> _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h46c8df623b7ea31eE.llvm.8749872363031919167</ text ></ g >< g >< title > std::sys::backtrace::__rust_begin_short_backtrace (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 245 " width = " 89.4737% " height = " 15 " fill = " rgb(222,207,29) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 255.50 "> std::sys::backtrace::__rust_begin_short_backtrace</ text ></ g >< g >< title > rust_riscv_viz::main (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 229 " width = " 89.4737% " height = " 15 " fill = " rgb(206,96,30) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 239.50 "> rust_riscv_viz::main</ text ></ g >< g >< title > core::ops::try_trait::NeverShortCircuit< T> ::wrap_mut_2::_{{closure}} (51 samples, 89.47%)</ title >< rect x = " 8.7719% " y = " 213 " width = " 89.4737% " height = " 15 " fill = " rgb(218,138,4) " fg:x = " 5 " fg:w = " 51 "/>< text x = " 9.0219% " y = " 223.50 "> core::ops::try_trait::NeverShortCircuit< T> ::wrap_mut_2::_{{closure}}</ text ></ g >< g >< title > rust_riscv_viz::matcher::check (31 samples, 54.39%)</ title >< rect x = " 43.8596% " y = " 197 " width = " 54.3860% " height = " 15 " fill = " rgb(250,191,14) " fg:x = " 25 " fg:w = " 31 "/>< text x = " 44.1096% " y = " 207.50 "> rust_riscv_viz::matcher::check</ text ></ g >< g >< title > asm_sysvec_reschedule_ipi (15 samples, 26.32%)</ title >< rect x = " 71.9298% " y = " 181 " width = " 26.3158% " height = " 15 " fill = " rgb(239,60,40) " fg:x = " 41 " fg:w = " 15 "/>< text x = " 72.1798% " y = " 191.50 "> asm_sysvec_reschedule_ipi</ text ></ g >< g >< title > irqentry_exit_to_user_mode (15 samples, 26.32%)</ title >< rect x = " 71.9298% " y = " 165 " width = " 26.3158% " height = " 15 " fill = " rgb(206,27,48) " fg:x = " 41 " fg:w = " 15 "/>< text x = " 72.1798% " y = " 175.50 "> irqentry_exit_to_user_mode</ text ></ g >< g >< title > schedule (15 samples, 26.32%)</ title >< rect x = " 71.9298% " y = " 149 " width = " 26.3158% " height = " 15 " fill = " rgb(225,35,8) " fg:x = " 41 " fg:w = " 15 "/>< text x = " 72.1798% " y = " 159.50 "> schedule</ text ></ g >< g >< title > __schedule (15 samples, 26.32%)</ title >< rect x = " 71.9298% " y = " 133 " width = " 26.3158% " height = " 15 " fill = " rgb(250,213,24) " fg:x = " 41 " fg:w = " 15 "/>< text x = " 72.1798% " y = " 143.50 "> __schedule</ text ></ g >< g >< title > finish_task_switch.isra.0 (15 samples, 26.32%)</ title >< rect x = " 71.9298% " y = " 117 " width = " 26.3158% " height = " 15 " fill = " rgb(247,123,22) " fg:x = " 41 " fg:w = " 15 "/>< text x = " 72.1798% " y = " 127.50 "> finish_task_switch.isra.0</ text ></ g >< g >< title > __perf_event_task_sched_in (13 samples, 22.81%)</ title >< rect x = " 75.4386% " y = " 101 " width = " 22.8070% " height = " 15 " fill = " rgb(231,138,38) " fg:x = " 43 " fg:w = " 13 "/>< text x = " 75.6886% " y = " 111.50 "> __perf_event_task_sched_in</ text ></ g >< g >< title > perf_ctx_enable (13 samples, 22.81%)</ title >< rect x = " 75.4386% " y = " 85 " width = " 22.8070% " height = " 15 " fill = " rgb(231,145,46) " fg:x = " 43 " fg:w = " 13 "/>< text x = " 75.6886% " y = " 95.50 "> perf_ctx_enable</ text ></ g >< g >< title > all (57 samples, 100%)</ title >< rect x = " 0.0000% " y = " 373 " width = " 100.0000% " height = " 15 " fill = " rgb(251,118,11) " fg:x = " 0 " fg:w = " 57 "/>< text x = " 0.2500% " y = " 383.50 "></ text ></ g >< g >< title > rust-riscv-viz (52 samples, 91.23%)</ title >< rect x = " 8.7719% " y = " 357 " width = " 91.2281% " height = " 15 " fill = " rgb(217,147,25) " fg:x = " 5 " fg:w = " 52 "/>< text x = " 9.0219% " y = " 367.50 "> rust-riscv-viz</ text ></ g >< g >< title > entry_SYSCALL_64 (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 341 " width = " 1.7544% " height = " 15 " fill = " rgb(247,81,37) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 351.50 "></ text ></ g >< g >< title > do_syscall_64 (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 325 " width = " 1.7544% " height = " 15 " fill = " rgb(209,12,38) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 335.50 "></ text ></ g >< g >< title > __x64_sys_execve (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 309 " width = " 1.7544% " height = " 15 " fill = " rgb(227,1,9) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 319.50 "></ text ></ g >< g >< title > do_execveat_common.isra.0 (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 293 " width = " 1.7544% " height = " 15 " fill = " rgb(248,47,43) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 303.50 "></ text ></ g >< g >< title > bprm_execve (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 277 " width = " 1.7544% " height = " 15 " fill = " rgb(221,10,30) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 287.50 "></ text ></ g >< g >< title > load_elf_binary (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 261 " width = " 1.7544% " height = " 15 " fill = " rgb(210,229,1) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 271.50 "></ text ></ g >< g >< title > setup_arg_pages (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 245 " width = " 1.7544% " height = " 15 " fill = " rgb(222,148,37) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 255.50 "></ text ></ g >< g >< title > expand_downwards (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 229 " width = " 1.7544% " height = " 15 " fill = " rgb(234,67,33) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 239.50 "></ text ></ g >< g >< title > mas_prev (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 213 " width = " 1.7544% " height = " 15 " fill = " rgb(247,98,35) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 223.50 "></ text ></ g >< g >< title > mas_prev_setup.constprop.0 (1 samples, 1.75%)</ title >< rect x = " 98.2456% " y = " 197 " width = " 1.7544% " height = " 15 " fill = " rgb(247,138,52) " fg:x = " 56 " fg:w = " 1 "/>< text x = " 98.4956% " y = " 207.50 "></ text ></ g ></ svg ></ svg >