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

Jonathan Dönszelmannwebsite start885cc4e

main
31.8 KiB491 linesraw
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[
13        var nametype = 'Function:';
14        var fontsize = 12;
15        var fontwidth = 0.59;
16        var xpad = 10;
17        var inverted = false;
18        var searchcolor = 'rgb(230,0,230)';
19        var fluiddrawing = true;
20        var truncate_text_right = false;
21    ]]><![CDATA["use strict";
22var details, searchbtn, unzoombtn, matchedtxt, svg, searching, frames, known_font_width;
23function init(evt) {
24    details = document.getElementById("details").firstChild;
25    searchbtn = document.getElementById("search");
26    unzoombtn = document.getElementById("unzoom");
27    matchedtxt = document.getElementById("matched");
28    svg = document.getElementsByTagName("svg")[0];
29    frames = document.getElementById("frames");
30    known_font_width = get_monospace_width(frames);
31    total_samples = parseInt(frames.attributes.total_samples.value);
32    searching = 0;
33
34    // Use GET parameters to restore a flamegraph's state.
35    var restore_state = function() {
36        var params = get_params();
37        if (params.x && params.y)
38            zoom(find_group(document.querySelector('[*|x="' + params.x + '"][y="' + params.y + '"]')));
39        if (params.s)
40            search(params.s);
41    };
42
43    if (fluiddrawing) {
44        // Make width dynamic so the SVG fits its parent's width.
45        svg.removeAttribute("width");
46        // Edge requires us to have a viewBox that gets updated with size changes.
47        var isEdge = /Edge\/\d./i.test(navigator.userAgent);
48        if (!isEdge) {
49            svg.removeAttribute("viewBox");
50        }
51        var update_for_width_change = function() {
52            if (isEdge) {
53                svg.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.
57            frames.attributes.width.value = svg.width.baseVal.value - xpad * 2;
58
59            // Text truncation needs to be adjusted for the current width.
60            update_text_for_elements(frames.children);
61
62            // Keep search elements at a fixed distance from right edge.
63            var svgWidth = svg.width.baseVal.value;
64            searchbtn.attributes.x.value = svgWidth - xpad;
65            matchedtxt.attributes.x.value = svgWidth - xpad;
66        };
67        window.addEventListener('resize', function() {
68            update_for_width_change();
69        });
70        // This needs to be done asynchronously for Safari to work.
71        setTimeout(function() {
72            unzoom();
73            update_for_width_change();
74            restore_state();
75        }, 0);
76    } else {
77        restore_state();
78    }
79}
80// event listeners
81window.addEventListener("click", function(e) {
82    var target = find_group(e.target);
83    if (target) {
84        if (target.nodeName == "a") {
85            if (e.ctrlKey === false) return;
86            e.preventDefault();
87        }
88        if (target.classList.contains("parent")) unzoom();
89        zoom(target);
90
91        // set parameters for zoom state
92        var el = target.querySelector("rect");
93        if (el && el.attributes && el.attributes.y && el.attributes["fg:x"]) {
94            var params = get_params()
95            params.x = el.attributes["fg:x"].value;
96            params.y = el.attributes.y.value;
97            history.replaceState(null, null, parse_params(params));
98        }
99    }
100    else if (e.target.id == "unzoom") {
101        unzoom();
102
103        // remove zoom state
104        var params = get_params();
105        if (params.x) delete params.x;
106        if (params.y) delete params.y;
107        history.replaceState(null, null, parse_params(params));
108    }
109    else if (e.target.id == "search") search_prompt();
110}, false)
111// mouse-over for info
112// show
113window.addEventListener("mouseover", function(e) {
114    var target = find_group(e.target);
115    if (target) details.nodeValue = nametype + " " + g_to_text(target);
116}, false)
117// clear
118window.addEventListener("mouseout", function(e) {
119    var target = find_group(e.target);
120    if (target) details.nodeValue = ' ';
121}, false)
122// ctrl-F for search
123window.addEventListener("keydown",function (e) {
124    if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) {
125        e.preventDefault();
126        search_prompt();
127    }
128}, false)
129// functions
130function get_params() {
131    var params = {};
132    var paramsarr = window.location.search.substr(1).split('&');
133    for (var i = 0; i < paramsarr.length; ++i) {
134        var tmp = paramsarr[i].split("=");
135        if (!tmp[0] || !tmp[1]) continue;
136        params[tmp[0]]  = decodeURIComponent(tmp[1]);
137    }
138    return params;
139}
140function parse_params(params) {
141    var uri = "?";
142    for (var key in params) {
143        uri += key + '=' + encodeURIComponent(params[key]) + '&';
144    }
145    if (uri.slice(-1) == "&")
146        uri = uri.substring(0, uri.length - 1);
147    if (uri == '?')
148        uri = window.location.href.split('?')[0];
149    return uri;
150}
151function find_child(node, selector) {
152    var children = node.querySelectorAll(selector);
153    if (children.length) return children[0];
154    return;
155}
156function find_group(node) {
157    var parent = node.parentElement;
158    if (!parent) return;
159    if (parent.id == "frames") return node;
160    return find_group(parent);
161}
162function orig_save(e, attr, val) {
163    if (e.attributes["fg:orig_" + attr] != undefined) return;
164    if (e.attributes[attr] == undefined) return;
165    if (val == undefined) val = e.attributes[attr].value;
166    e.setAttribute("fg:orig_" + attr, val);
167}
168function orig_load(e, attr) {
169    if (e.attributes["fg:orig_"+attr] == undefined) return;
170    e.attributes[attr].value = e.attributes["fg:orig_" + attr].value;
171    e.removeAttribute("fg:orig_" + attr);
172}
173function g_to_text(e) {
174    var text = find_child(e, "title").firstChild.nodeValue;
175    return (text)
176}
177function g_to_func(e) {
178    var 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.
181    return (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.
186    text = find_child(frames.children[0], "text");
187    originalContent = text.textContent;
188    text.textContent = "!";
189    bangWidth = text.getComputedTextLength();
190    text.textContent = "W";
191    wWidth = text.getComputedTextLength();
192    text.textContent = originalContent;
193    if (bangWidth === wWidth) {
194        return bangWidth;
195    } else {
196        return 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.
206    if (known_font_width === 0) {
207        for (var i = 0; i < elements.length; i++) {
208            update_text(elements[i]);
209        }
210        return;
211    }
212
213    var textElemNewAttributes = [];
214    for (var i = 0; i < elements.length; i++) {
215        var e = elements[i];
216        var r = find_child(e, "rect");
217        var t = find_child(e, "text");
218        var w = parseFloat(r.attributes.width.value) * frames.attributes.width.value / 100 - 3;
219        var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,"");
220        var newX = format_percent((parseFloat(r.attributes.x.value) + (100 * 3 / frames.attributes.width.value)));
221
222        // Smaller than this size won't fit anything
223        if (w < 2 * known_font_width) {
224            textElemNewAttributes.push([newX, ""]);
225            continue;
226        }
227
228        // Fit in full text width
229        if (txt.length * known_font_width < w) {
230            textElemNewAttributes.push([newX, txt]);
231            continue;
232        }
233
234        var substringLength = Math.floor(w / known_font_width) - 2;
235        if (truncate_text_right) {
236            // Truncate the right side of the text.
237            textElemNewAttributes.push([newX, txt.substring(0, substringLength) + ".."]);
238            continue;
239        } else {
240            // Truncate the left side of the text.
241            textElemNewAttributes.push([newX, ".." + txt.substring(txt.length - substringLength, txt.length)]);
242            continue;
243        }
244    }
245
246    console.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.
249    for (var i = 0; i < elements.length; i++) {
250        var e = elements[i];
251        var values = textElemNewAttributes[i];
252        var t = find_child(e, "text");
253        t.attributes.x.value = values[0];
254        t.textContent = values[1];
255    }
256}
257
258function update_text(e) {
259    var r = find_child(e, "rect");
260    var t = find_child(e, "text");
261    var w = parseFloat(r.attributes.width.value) * frames.attributes.width.value / 100 - 3;
262    var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,"");
263    t.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
266    if (w < 2 * fontsize * fontwidth) {
267        t.textContent = "";
268        return;
269    }
270    t.textContent = txt;
271    // Fit in full text width
272    if (t.getComputedTextLength() < w)
273        return;
274    if (truncate_text_right) {
275        // Truncate the right side of the text.
276        for (var x = txt.length - 2; x > 0; x--) {
277            if (t.getSubStringLength(0, x + 2) <= w) {
278                t.textContent = txt.substring(0, x) + "..";
279                return;
280            }
281        }
282    } else {
283        // Truncate the left side of the text.
284        for (var x = 2; x < txt.length; x++) {
285            if (t.getSubStringLength(x - 2, txt.length) <= w) {
286                t.textContent = ".." + txt.substring(x, txt.length);
287                return;
288            }
289        }
290    }
291    t.textContent = "";
292}
293// zoom
294function zoom_reset(e) {
295    if (e.tagName == "rect") {
296        e.attributes.x.value = format_percent(100 * parseInt(e.attributes["fg:x"].value) / total_samples);
297        e.attributes.width.value = format_percent(100 * parseInt(e.attributes["fg:w"].value) / total_samples);
298    }
299    if (e.childNodes == undefined) return;
300    for(var i = 0, c = e.childNodes; i < c.length; i++) {
301        zoom_reset(c[i]);
302    }
303}
304function zoom_child(e, x, zoomed_width_samples) {
305    if (e.tagName == "text") {
306        var parent_x = parseFloat(find_child(e.parentNode, "rect[x]").attributes.x.value);
307        e.attributes.x.value = format_percent(parent_x + (100 * 3 / frames.attributes.width.value));
308    } else if (e.tagName == "rect") {
309        e.attributes.x.value = format_percent(100 * (parseInt(e.attributes["fg:x"].value) - x) / zoomed_width_samples);
310        e.attributes.width.value = format_percent(100 * parseInt(e.attributes["fg:w"].value) / zoomed_width_samples);
311    }
312    if (e.childNodes == undefined) return;
313    for(var i = 0, c = e.childNodes; i < c.length; i++) {
314        zoom_child(c[i], x, zoomed_width_samples);
315    }
316}
317function zoom_parent(e) {
318    if (e.attributes) {
319        if (e.attributes.x != undefined) {
320            e.attributes.x.value = "0.0%";
321        }
322        if (e.attributes.width != undefined) {
323            e.attributes.width.value = "100.0%";
324        }
325    }
326    if (e.childNodes == undefined) return;
327    for(var i = 0, c = e.childNodes; i < c.length; i++) {
328        zoom_parent(c[i]);
329    }
330}
331function zoom(node) {
332    var attr = find_child(node, "rect").attributes;
333    var width = parseInt(attr["fg:w"].value);
334    var xmin = parseInt(attr["fg:x"].value);
335    var xmax = xmin + width;
336    var ymin = parseFloat(attr.y.value);
337    unzoombtn.classList.remove("hide");
338    var el = frames.children;
339    var to_update_text = [];
340    for (var i = 0; i < el.length; i++) {
341        var e = el[i];
342        var a = find_child(e, "rect").attributes;
343        var ex = parseInt(a["fg:x"].value);
344        var ew = parseInt(a["fg:w"].value);
345        // Is it an ancestor
346        if (!inverted) {
347            var upstack = parseFloat(a.y.value) > ymin;
348        } else {
349            var upstack = parseFloat(a.y.value) < ymin;
350        }
351        if (upstack) {
352            // Direct ancestor
353            if (ex <= xmin && (ex+ew) >= xmax) {
354                e.classList.add("parent");
355                zoom_parent(e);
356                to_update_text.push(e);
357            }
358            // not in current path
359            else
360                e.classList.add("hide");
361        }
362        // Children maybe
363        else {
364            // no common path
365            if (ex < xmin || ex >= xmax) {
366                e.classList.add("hide");
367            }
368            else {
369                zoom_child(e, xmin, width);
370                to_update_text.push(e);
371            }
372        }
373    }
374    update_text_for_elements(to_update_text);
375}
376function unzoom() {
377    unzoombtn.classList.add("hide");
378    var el = frames.children;
379    for(var i = 0; i < el.length; i++) {
380        el[i].classList.remove("parent");
381        el[i].classList.remove("hide");
382        zoom_reset(el[i]);
383    }
384    update_text_for_elements(el);
385}
386// search
387function reset_search() {
388    var el = document.querySelectorAll("#frames rect");
389    for (var i = 0; i < el.length; i++) {
390        orig_load(el[i], "fill")
391    }
392    var params = get_params();
393    delete params.s;
394    history.replaceState(null, null, parse_params(params));
395}
396function search_prompt() {
397    if (!searching) {
398        var term = prompt("Enter a search term (regexp " +
399            "allowed, eg: ^ext4_)", "");
400        if (term != null) {
401            search(term)
402        }
403    } else {
404        reset_search();
405        searching = 0;
406        searchbtn.classList.remove("show");
407        searchbtn.firstChild.nodeValue = "Search"
408        matchedtxt.classList.add("hide");
409        matchedtxt.firstChild.nodeValue = ""
410    }
411}
412function search(term) {
413    var re = new RegExp(term);
414    var el = frames.children;
415    var matches = new Object();
416    var maxwidth = 0;
417    for (var i = 0; i < el.length; i++) {
418        var e = el[i];
419        // Skip over frames which are either not visible, or below the zoomed-to frame
420        if (e.classList.contains("hide") || e.classList.contains("parent")) {
421            continue;
422        }
423        var func = g_to_func(e);
424        var rect = find_child(e, "rect");
425        if (func == null || rect == null)
426            continue;
427        // Save max width. Only works as we have a root frame
428        var w = parseInt(rect.attributes["fg:w"].value);
429        if (w > maxwidth)
430            maxwidth = w;
431        if (func.match(re)) {
432            // highlight
433            var x = parseInt(rect.attributes["fg:x"].value);
434            orig_save(rect, "fill");
435            rect.attributes.fill.value = searchcolor;
436            // remember matches
437            if (matches[x] == undefined) {
438                matches[x] = w;
439            } else {
440                if (w > matches[x]) {
441                    // overwrite with parent
442                    matches[x] = w;
443                }
444            }
445            searching = 1;
446        }
447    }
448    if (!searching)
449        return;
450    var params = get_params();
451    params.s = term;
452    history.replaceState(null, null, parse_params(params));
453
454    searchbtn.classList.add("show");
455    searchbtn.firstChild.nodeValue = "Reset Search";
456    // calculate percent matched, excluding vertical overlap
457    var count = 0;
458    var lastx = -1;
459    var lastw = 0;
460    var keys = Array();
461    for (k in matches) {
462        if (matches.hasOwnProperty(k))
463            keys.push(k);
464    }
465    // sort the matched frames by their x location
466    // ascending, then width descending
467    keys.sort(function(a, b){
468        return 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.
473    for (var k in keys) {
474        var x = parseInt(keys[k]);
475        var w = matches[keys[k]];
476        if (x >= lastx + lastw) {
477            count += w;
478            lastx = x;
479            lastw = w;
480        }
481    }
482    // display matched percent
483    matchedtxt.classList.remove("hide");
484    var pct = 100 * count / maxwidth;
485    if (pct != 100) pct = pct.toFixed(1);
486    matchedtxt.firstChild.nodeValue = "Matched: " + pct + "%";
487}
488function format_percent(n) {
489    return 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>&lt;std::time::Instant as core::ops::arith::Sub&gt;::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>&lt;T as alloc::slice::hack::ConvertVec&gt;::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">&lt;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&lt;T&gt;::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&lt;T&gt;::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>