From: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>, linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH 2/3] kernel-shark-qt: Consolidate load_data_entries and load_data_records
Date: Thu, 5 Jul 2018 19:08:58 +0300 [thread overview]
Message-ID: <c76e5486-1431-7a81-63e8-cac67858d5e8@gmail.com> (raw)
In-Reply-To: <993cf66c-316a-1b7a-59a6-a5f607476667@gmail.com>
Hi Steve,
I am still learning how to answer to patches, and I guess because of
this you didn't notice my comment at the bottom. I think you have to
remove the line
free_record(rec);
You don't have to send me another patch.
Thanks!
Yordan
On 4.07.2018 14:39, Yordan Karadzhov (VMware) wrote:
>>
>> + rec = rec_list[next_cpu]->rec;
>> + rows[count] = rec;
>> - ++count;
>> + pid = pevent_data_pid(kshark_ctx->pevent, rec);
>> + task = kshark_add_task(kshark_ctx, pid);
>> + if (!task)
>> + goto fail;
>> +
>> + temp_rec = rec_list[next_cpu];
>> + rec_list[next_cpu] = rec_list[next_cpu]->next;
>> + free(temp_rec);
>> + free_record(rec);
>
> You have to free only the element of the list.
> The user is responsible for freeing the record.
>
>> + }
>> }
>> - free(cpu_list);
>> + free_rec_list(rec_list, n_cpus);
>> *data_rows = rows;
next prev parent reply other threads:[~2018-07-05 16:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-03 16:21 [PATCH 2/3] kernel-shark-qt: Consolidate load_data_entries and load_data_records Steven Rostedt
2018-07-04 11:39 ` Yordan Karadzhov (VMware)
2018-07-05 14:47 ` Steven Rostedt
2018-07-05 14:53 ` Yordan Karadzhov (VMware)
2018-07-05 15:48 ` Steven Rostedt
2018-07-05 16:08 ` Yordan Karadzhov (VMware) [this message]
2018-07-05 16:25 ` Steven Rostedt
2018-07-05 16:35 ` Steven Rostedt
2018-07-05 16:38 ` Steven Rostedt
2018-07-05 22:05 ` Steven Rostedt
2018-07-06 10:51 ` Yordan Karadzhov (VMware)
2018-07-06 11:36 ` Yordan Karadzhov (VMware)
2018-07-06 12:46 ` Yordan Karadzhov (VMware)
2018-07-06 18:21 ` Steven Rostedt
2018-07-06 18:43 ` Steven Rostedt
2018-07-09 15:54 ` Yordan Karadzhov (VMware)
2018-07-06 18:24 ` Steven Rostedt
2018-07-09 15:54 ` Yordan Karadzhov (VMware)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c76e5486-1431-7a81-63e8-cac67858d5e8@gmail.com \
--to=y.karadz@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).