Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(270)

Issue 5416043: [google] Patch to enable efficient function level instrumentation

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by harshit
Modified:
12 years, 3 months ago
CC:
gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Total comments: 29

Patch Set 2 : Addressed comments from David for the original patch #

Total comments: 1

Patch Set 3 : Incorporating David's second round of comments #

Total comments: 2

Patch Set 4 : As suggested by David, updated comment on generation of backpointer section for comdat functions. #

Patch Set 5 : Fixing broken tests after last patch update #

Patch Set 6 : Updated tests to make them runnable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -2 lines) Patch
M gcc/config/i386/i386.c View 4 chunks +223 lines, -0 lines 0 comments Download
M gcc/config/i386/i386.md View 1 2 3 2 chunks +24 lines, -2 lines 0 comments Download
M gcc/config/i386/i386.opt View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M gcc/config/i386/i386-protos.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M gcc/params.def View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.target/i386/patch-functions-1.c View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.target/i386/patch-functions-2.c View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.target/i386/patch-functions-3.c View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.target/i386/patch-functions-4.c View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.target/i386/patch-functions-5.c View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.target/i386/patch-functions-6.c View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.target/i386/patch-functions-7.c View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 18
harshit
From f63ec02c0a720174489fe450b3cc43eb00fd4bdd Mon Sep 17 00:00:00 2001 From: Harshit Chopra <harshit@google.com> Date: Thu, 3 Nov ...
12 years, 5 months ago (2011-11-17 23:38:42 UTC) #1
harshit
Ping!
12 years, 5 months ago (2011-11-28 20:42:38 UTC) #2
harshit
Ping!
12 years, 5 months ago (2011-11-28 20:43:13 UTC) #3
harshit
12 years, 5 months ago (2011-11-28 20:50:15 UTC) #4
davidxl
Please also explain the need for backpointer section. David http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c File gcc/config/i386/i386.c (right): http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c#newcode10801 gcc/config/i386/i386.c:10801: ...
12 years, 5 months ago (2011-11-28 22:16:27 UTC) #5
harshit
Thanks David for the review. Addressed your comments. http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c File gcc/config/i386/i386.c (right): http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c#newcode10801 gcc/config/i386/i386.c:10801: +static ...
12 years, 5 months ago (2011-12-02 01:57:16 UTC) #6
davidxl
Have you uploaded the revised patch? David http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c File gcc/config/i386/i386.c (right): http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c#newcode10927 gcc/config/i386/i386.c:10927: + is ...
12 years, 5 months ago (2011-12-02 19:08:18 UTC) #7
harshit
On Fri, Dec 2, 2011 at 11:08 AM, <davidxl@google.com> wrote: > Have you uploaded the ...
12 years, 5 months ago (2011-12-02 19:13:35 UTC) #8
davidxl
http://codereview.appspot.com/5416043/diff/6001/gcc/config/i386/i386.c File gcc/config/i386/i386.c (right): http://codereview.appspot.com/5416043/diff/6001/gcc/config/i386/i386.c#newcode10881 gcc/config/i386/i386.c:10881: + '_function_patch_epilogue'. The backpointer section can be used to ...
12 years, 5 months ago (2011-12-02 19:37:38 UTC) #9
harshit
On Fri, Dec 2, 2011 at 11:08 AM, <davidxl@google.com> wrote: > Have you uploaded the ...
12 years, 4 months ago (2011-12-16 03:30:18 UTC) #10
davidxl
http://codereview.appspot.com/5416043/diff/12001/gcc/config/i386/i386.c File gcc/config/i386/i386.c (left): http://codereview.appspot.com/5416043/diff/12001/gcc/config/i386/i386.c#oldcode10928 gcc/config/i386/i386.c:10928: if (current_function_decl != NULL_TREE && I am not sure ...
12 years, 4 months ago (2011-12-16 21:43:02 UTC) #11
Cary
http://codereview.appspot.com/5416043/diff/12001/gcc/config/i386/i386.c File gcc/config/i386/i386.c (left): http://codereview.appspot.com/5416043/diff/12001/gcc/config/i386/i386.c#oldcode10928 gcc/config/i386/i386.c:10928: if (current_function_decl != NULL_TREE && If I understand correctly, ...
12 years, 4 months ago (2011-12-16 22:26:21 UTC) #12
davidxl
Ok, Cary's explanation makes sense. Please update the comments to make it clearer. http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c File ...
12 years, 4 months ago (2011-12-16 23:10:53 UTC) #13
harshit
On Fri, Dec 16, 2011 at 3:10 PM, <davidxl@google.com> wrote: > Ok, Cary's explanation makes ...
12 years, 4 months ago (2011-12-20 21:56:09 UTC) #14
davidxl
Ok for google branches when tests are done. Update ChangeLog file properly. David On Tue, ...
12 years, 4 months ago (2011-12-27 18:34:50 UTC) #15
harshit
Updated the tests so that they are runnable. Uploaded the modified patch. FYI, I don't ...
12 years, 3 months ago (2012-01-14 00:32:57 UTC) #16
harshit
By google branches, do you mean google-main and google-integration, or just google-main? -- Harshit On ...
12 years, 3 months ago (2012-01-21 01:43:07 UTC) #17
harshit
12 years, 3 months ago (2012-01-26 00:34:21 UTC) #18
Updated gcc/ChangeLog.google-main file and committed the change to
google-main branch in svn.

Thanks David for the review and Cary for helping me write the patch.

--
Harshit



On Tue, Dec 27, 2011 at 10:34 AM, Xinliang David Li <davidxl@google.com> wrote:
> Ok for google branches when tests are done. Update ChangeLog file properly.
>
> David
>
> On Tue, Dec 20, 2011 at 1:55 PM, Harshit Chopra <harshit@google.com> wrote:
>>
>>
>> On Fri, Dec 16, 2011 at 3:10 PM, <davidxl@google.com> wrote:
>>>
>>> Ok, Cary's explanation makes sense. Please update the comments to make
>>> it clearer.
>>>
>>>
>>>
>>> http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c
>>> File gcc/config/i386/i386.c (right):
>>>
>>>
>>>
http://codereview.appspot.com/5416043/diff/1/gcc/config/i386/i386.c#newcode10927
>>> gcc/config/i386/i386.c:10927: +     is later renamed to '<section_name>'
>>> by ix86_elf_asm_named_section().  */
>>> Probably better to change the comment to something like -- we emit a
>>> unique section name for the back pointer section. This is needed because
>>> otherwise the 'get_section' call may return an existing non-comdat
>>> section with the same name, leading to references from non-comdat
>>> section to comdat functions.
>>
>>
>> Updated comment as suggested.
>>
>>>
>>>
>>> http://codereview.appspot.com/5416043/
>>
>>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b