Re: [PATCH] perf inject: correct event attribute sizes

2021-01-15 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 23, 2020 at 11:11:05PM +0100, Jiri Olsa escreveu: > On Tue, Dec 15, 2020 at 10:58:16PM -0800, Denis Nikitin wrote: > > When perf inject reads a perf.data file from an older version of perf, > > it writes event attributes into the output with the original size field, > > but lays them ou

Re: [PATCH] perf inject: correct event attribute sizes

2020-12-23 Thread Jiri Olsa
On Tue, Dec 15, 2020 at 10:58:16PM -0800, Denis Nikitin wrote: > When perf inject reads a perf.data file from an older version of perf, > it writes event attributes into the output with the original size field, > but lays them out as if they had the size currently used. Readers see > a corrupt file

[PATCH] perf inject: correct event attribute sizes

2020-12-15 Thread Denis Nikitin
When perf inject reads a perf.data file from an older version of perf, it writes event attributes into the output with the original size field, but lays them out as if they had the size currently used. Readers see a corrupt file. Update the size field to match the layout. Signed-off-by: Al Grant

[PATCH] perf inject: correct event attribute sizes

2020-11-24 Thread Al Grant
When perf inject reads a perf.data file from an older version of perf, it writes event attributes into the output with the original size field, but lays them out as if they had the size currently used. Readers see a corrupt file. Update the size field to match the layout. Signed-off-by: Al Grant

Re: [PATCH] perf inject: correct event attribute sizes

2020-09-01 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 26, 2020 at 10:42:04AM +0100, Al Grant escreveu: > When perf inject reads a perf.data file from an older version of perf, > it writes event attributes into the output with the original size field, > but lays them out as if they had the size currently used. Readers see > a corrupt file.

Re: [PATCH] perf inject: correct event attribute sizes

2020-08-26 Thread Al Grant
On 26/08/2020 12:27, Mark Rutland wrote: On Wed, Aug 26, 2020 at 10:42:04AM +0100, Al Grant wrote: When perf inject reads a perf.data file from an older version of perf, it writes event attributes into the output with the original size field, but lays them out as if they had the size currently u

Re: [PATCH] perf inject: correct event attribute sizes

2020-08-26 Thread Mark Rutland
On Wed, Aug 26, 2020 at 10:42:04AM +0100, Al Grant wrote: > When perf inject reads a perf.data file from an older version of perf, > it writes event attributes into the output with the original size field, > but lays them out as if they had the size currently used. Readers see > a corrupt file. Upd

[PATCH] perf inject: correct event attribute sizes

2020-08-26 Thread Al Grant
When perf inject reads a perf.data file from an older version of perf, it writes event attributes into the output with the original size field, but lays them out as if they had the size currently used. Readers see a corrupt file. Update the size field to match the layout. From: Denis Nikitin Sig