Page MenuHomePhabricator

varunkumare99 (Varun Kumar E)
User

Projects

User does not belong to any projects.

User Details

User Since
Oct 21 2022, 5:27 AM (23 w, 1 d)

Recent Activity

Thu, Mar 30

varunkumare99 updated the summary of D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V..
Thu, Mar 30, 5:08 AM · Restricted Project, Restricted Project

Fri, Mar 24

varunkumare99 added a comment to D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V..

Hi Varun - thanks for filing bug #60698 to help track this issue, and for noticing that there should now be some upstream support for cfi_remember_state and cfi_restore_state.

The first question that comes to my mind is what degree of testing you've done with this?

Hi Alex,
the patch updates over 500 testcases for RISCV(as it adds cfi info the epilogue), which results in a patch of over 30M. Due to which I'm not able to upload.

Hi Varun - thanks for filing bug #60698 to help track this issue, and for noticing that there should now be some upstream support for cfi_remember_state and cfi_restore_state.

The first question that comes to my mind is what degree of testing you've done with this?

Hi Alex,
the patch updates over 500 testcases for RISCV(as it adds cfi info the epilogue), which results in a patch of over 30M. Due to which I'm not able to upload.

Sorry for not getting back on this. I was thinking more about real-world testing rather than just test case changes.

Fri, Mar 24, 2:53 AM · Restricted Project, Restricted Project

Wed, Mar 8

varunkumare99 added a comment to D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V..

Hi Varun,

It might be good to have a simple case to illustrate that cfi_remember_state and cfi_restore_state can be generated properly with epilogue CFI.
For examle, could the following case generated with cfi_remember_state and cfi_restore_state as GCC?

extern void foo(void);
void f(int *i) {
  if (*i == 0) {
    *i = 1;
    foo();
    return;
  } else {
    __builtin_printf("Hi");
    *i=0;
  }
}
Wed, Mar 8, 4:26 AM · Restricted Project, Restricted Project
varunkumare99 updated the diff for D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V..

This patch emits cfi_same_value directives when the unwind table needs to be reset to the initial one.
By default emission unwind tables is disabled for RISC-V.
Need to pass -fasynchronous-unwind-tables to emit unwind tables.

Wed, Mar 8, 4:22 AM · Restricted Project, Restricted Project

Feb 15 2023

varunkumare99 edited reviewers for D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V., added: probinson, MaskRay, chill; removed: lenary.
Feb 15 2023, 4:02 AM · Restricted Project, Restricted Project
varunkumare99 added a comment to D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V..

Hi Varun - thanks for filing bug #60698 to help track this issue, and for noticing that there should now be some upstream support for cfi_remember_state and cfi_restore_state.

The first question that comes to my mind is what degree of testing you've done with this?

Feb 15 2023, 3:59 AM · Restricted Project, Restricted Project

Feb 8 2023

varunkumare99 added a reviewer for D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V.: lenary.
Feb 8 2023, 8:44 PM · Restricted Project, Restricted Project

Feb 3 2023

varunkumare99 requested review of D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V..
Feb 3 2023, 1:11 AM · Restricted Project, Restricted Project

Oct 25 2022

varunkumare99 added a comment to D136462: [LLDB] Add color to output text when searching for symbols.

I agree that this change names - print - restore names is going to cause problems. Pavel is right that this should happen in some dump function somewhere.

But, assuming what you've got works to an extent, you should add some testing first. That will allow you to refactor with less risk. You'll be able to reuse a lot of the tests later, so it's not wasted effort and it'll flush out some corner cases you haven't thought of.

Oct 25 2022, 7:40 AM · Restricted Project, Restricted Project
varunkumare99 added a comment to D136462: [LLDB] Add color to output text when searching for symbols.

This is definitely not a good way to implement this functionality. There's no telling who else might be accessing the symbols while their names are being changed.

The colouration should be implemented inside the dumping function, without modifying the state of the debugger. I realize that's not currently easy to do, but that's not a reason to do this. It's possible the dumping machinery needs to be refactored to support this kind of customized colouration.

Oct 25 2022, 7:35 AM · Restricted Project, Restricted Project

Oct 21 2022

varunkumare99 requested review of D136462: [LLDB] Add color to output text when searching for symbols.
Oct 21 2022, 9:06 AM · Restricted Project, Restricted Project