<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in sample.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>aeae075a0352eb6ab363fb1910f209eaa296a175 - perf sample: Add evsel to struct perf_sample</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/perf/util/sample.c#aeae075a0352eb6ab363fb1910f209eaa296a175</link>
        <description>perf sample: Add evsel to struct perf_sampleAdd the evsel from evsel__parse_sample into the structperf_sample. Sometimes we want to alter the evsel associated with asample, such as with off-cpu bpf-output events. In general the evseland perf_sample are passed as a pair, but this makes an altered evselsomething of a chore to keep checking for and setting up. Laterpatches will remove passing an evsel with the perf_sample and switchto just using the perf_sample&apos;s value.Signed-off-by: Ian Rogers &lt;irogers@google.com&gt;Signed-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;

            List of files:
            /linux/tools/perf/util/sample.c</description>
        <pubDate>Sat, 04 Apr 2026 05:43:03 +0200</pubDate>
        <dc:creator>Ian Rogers &lt;irogers@google.com&gt;</dc:creator>
    </item>
<item>
        <title>ad5ceacd48e9ea36bd12e778071561290adb0154 - perf sample: Make sure perf_sample__init/exit are used</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/perf/util/sample.c#ad5ceacd48e9ea36bd12e778071561290adb0154</link>
        <description>perf sample: Make sure perf_sample__init/exit are usedThe deferred stack trace code wasn&apos;t using perf_sample__init/exit. Addthe deferred stack trace clean up to perf_sample__exit which requiresproper NULL initialization in perf_sample__init. Make theperf_sample__exit robust to being called more than once by usingzfree. Make the error paths in evsel__parse_sample exit thesample. Add a merged_callchain boolean to capture that callchain isallocated, deferred_callchain doen&apos;t suffice for this. Pack the structvariables to avoid padding bytes for this.Similiarly powerpc_vpadtl_sample wasn&apos;t using perf_sample__init/exit,use it for consistency and potential issues with uninitializedvariables.Similarly guest_session__inject_events in builtin-inject wasn&apos;t usingperf_sample_init/exit. The lifetime management for fetched events issomewhat complex there, but when an event is fetched the sample shouldbe initialized and needs exiting on error. The sample may be left inplace so that future injects have access to it.Signed-off-by: Ian Rogers &lt;irogers@google.com&gt;Signed-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;

            List of files:
            /linux/tools/perf/util/sample.c</description>
        <pubDate>Sat, 04 Apr 2026 05:43:02 +0200</pubDate>
        <dc:creator>Ian Rogers &lt;irogers@google.com&gt;</dc:creator>
    </item>
<item>
        <title>f33e7aa42ea79f2142f073df777c01125def45e5 - perf callchain: Switch callchain_param_setup from an arch to an e_machine</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/perf/util/sample.c#f33e7aa42ea79f2142f073df777c01125def45e5</link>
        <description>perf callchain: Switch callchain_param_setup from an arch to an e_machineIncrease use of e_machine by replacing callchain_param_setup&apos;s archargument to be an e_machine typically read from the session.Signed-off-by: Ian Rogers &lt;irogers@google.com&gt;Cc: Adrian Hunter &lt;adrian.hunter@intel.com&gt;Cc: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;Cc: Andi Kleen &lt;ak@linux.intel.com&gt;Cc: Ingo Molnar &lt;mingo@redhat.com&gt;Cc: James Clark &lt;james.clark@linaro.org&gt;Cc: Jiri Olsa &lt;jolsa@kernel.org&gt;Cc: Leo Yan &lt;leo.yan@arm.com&gt;Cc: Namhyung Kim &lt;namhyung@kernel.org&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Shimin Guo &lt;shimin.guo@skydio.com&gt;Cc: Yujie Liu &lt;yujie.liu@intel.com&gt;Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;

            List of files:
            /linux/tools/perf/util/sample.c</description>
        <pubDate>Mon, 26 Jan 2026 23:05:49 +0100</pubDate>
        <dc:creator>Ian Rogers &lt;irogers@google.com&gt;</dc:creator>
    </item>
<item>
        <title>7ce6dfc603ed01044ebe58472a584d9995281ca2 - perf script: Fix script_fetch_insn for more than just x86</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/perf/util/sample.c#7ce6dfc603ed01044ebe58472a584d9995281ca2</link>
        <description>perf script: Fix script_fetch_insn for more than just x86The script_fetch_insn code was only supported on natively running x86.Implement a crude elf_machine_max_instruction_length function and use togive an instruction length on more than just x86.Use the ELF machine to determine the length to use to supportcross-architecture development.Signed-off-by: Ian Rogers &lt;irogers@google.com&gt;Cc: Adrian Hunter &lt;adrian.hunter@intel.com&gt;Cc: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;Cc: Andi Kleen &lt;ak@linux.intel.com&gt;Cc: Ingo Molnar &lt;mingo@redhat.com&gt;Cc: James Clark &lt;james.clark@linaro.org&gt;Cc: Jiri Olsa &lt;jolsa@kernel.org&gt;Cc: Leo Yan &lt;leo.yan@arm.com&gt;Cc: Namhyung Kim &lt;namhyung@kernel.org&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Shimin Guo &lt;shimin.guo@skydio.com&gt;Cc: Yujie Liu &lt;yujie.liu@intel.com&gt;[ Conditionally define EM_CSKY and EM_LOONGARCH for older distros ]Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;

            List of files:
            /linux/tools/perf/util/sample.c</description>
        <pubDate>Mon, 26 Jan 2026 23:05:48 +0100</pubDate>
        <dc:creator>Ian Rogers &lt;irogers@google.com&gt;</dc:creator>
    </item>
<item>
        <title>dc6d2bc2d893a878e7b58578ff01b4738708deb4 - perf sample: Make user_regs and intr_regs optional</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/perf/util/sample.c#dc6d2bc2d893a878e7b58578ff01b4738708deb4</link>
        <description>perf sample: Make user_regs and intr_regs optionalThe struct dump_regs contains 512 bytes of cache_regs, meaning the twovalues in perf_sample contribute 1088 bytes of its total 1384 bytessize. Initializing this much memory has a cost reported by TavianBarnes &lt;tavianator@tavianator.com&gt; as about 2.5% when running `perfscript --itrace=i0`:https://lore.kernel.org/lkml/d841b97b3ad2ca8bcab07e4293375fb7c32dfce7.1736618095.git.tavianator@tavianator.com/Adrian Hunter &lt;adrian.hunter@intel.com&gt; replied that the zeroinitialization was necessary and couldn&apos;t simply be removed.This patch aims to strike a middle ground of still zeroing theperf_sample, but removing 79% of its size by make user_regs andintr_regs optional pointers to zalloc-ed memory. To support theallocation accessors are created for user_regs and intr_regs. Tosupport correct cleanup perf_sample__init and perf_sample__exitfunctions are created and added throughout the code base.Signed-off-by: Ian Rogers &lt;irogers@google.com&gt;Link: https://lore.kernel.org/r/20250113194345.1537821-1-irogers@google.comSigned-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;

            List of files:
            /linux/tools/perf/util/sample.c</description>
        <pubDate>Mon, 13 Jan 2025 20:43:45 +0100</pubDate>
        <dc:creator>Ian Rogers &lt;irogers@google.com&gt;</dc:creator>
    </item>
</channel>
</rss>
