Re: [Crash-utility] [PATCH] Fix typo for 'bf -FF' command

2019-11-22 Thread Austin Kim
2019년 11월 21일 (목) 오후 11:32, Dave Anderson 님이 작성:
>
> Hi Austin,
>
> Thanks for catching that, but you missed one -- there's another one just 
> above it!
> Queued for crash-7.2.8:


>
>   
> https://github.com/crash-utility/crash/commit/b259940b228cc7025904f9b7372348b56f73a4d2
>
> Dave

Oh, thanks for catching missed one.

Thanks,
Austin Kim


> > -"%s> bf -FF",
> > +"%s> bt -FF",
> >  "...",
> >  " #4 [810072b47f10] vfs_write at 800789d8",
> >  "810072b47f18: [81007e020380:files_cache]
> >  [81007e2c2880:filp]",
> > --
> > 2.6.2
> >
> >
>


--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility

Re: [Crash-utility] [PATCH] Fix typo for 'bf -FF' command

2019-11-21 Thread Dave Anderson



Hi Austin,

Thanks for catching that, but you missed one -- there's another one just above 
it!
Queued for crash-7.2.8:

  
https://github.com/crash-utility/crash/commit/b259940b228cc7025904f9b7372348b56f73a4d2

Dave
 
 
- Original Message -
> When we use 'help bt' command, the instruction of 'bt' is printed as below.
> crash> help bt
> 
> NAME
>   bt - backtrace
> ...
> crash> bf -FF
> ...
>  #4 [810072b47f10] vfs_write at 800789d8
> 810072b47f18: [81007e020380:files_cache]
> [81007e2c2880:filp]
> 810072b47f28: 0002 fff7
> 810072b47f38: 2b141825d000 sys_write+69
>  #5 [810072b47f40] sys_write at 80078f75
> 
> But it seems that 'bf -FF' shows misleading information
> because invalid output is displayed using 'bf -FF' command as below.
> crash>  bf -FF 1
> crash: command not found: bf
> 
> But 'bt -FF 1' shows valid output.
> crash> bt -FF 1
> PID: 1  TASK: cf932d40  CPU: 0   COMMAND: "systemd"
>  #0 [] (__schedule) from []
> [PC: c0c1609c  LR: c0c162c0  SP: cf92fe18  SIZE: 72]
> cf92fe18: 40060093 _end+238341700 _end+239562316
> trace_buffer_unlock_commit_regs+280
> cf92fe28: 001c754b schedule+132 schedule+124 0004
> cf92fe38: 001c754b  __stack_chk_guard 
> cf92fe48:  80060013 _end+239554564 
> cf92fe58: _end+239562340 schedule+132
>  #1 [] (schedule) from []
> [PC: c0c162c0  LR: c0c1ab5c  SP: cf92fe60  SIZE: 8]
> cf92fe60: _end+239562452 schedule_hrtimeout_range_clock+300
> 
> So fix typo for 'bf -FF' command as below to avoid confusion.
> 
> Signed-off-by: Austin Kim 
> ---
>  help.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/help.c b/help.c
> index 2b2285b..934d8bc 100644
> --- a/help.c
> +++ b/help.c
> @@ -2133,7 +2133,7 @@ char *help_bt[] = {
>  "810072b47f38: 2b141825d000 sys_write+69   ",
>  " #5 [810072b47f40] sys_write at 80078f75",
>  "...",
> -"%s> bf -FF",
> +"%s> bt -FF",
>  "...",
>  " #4 [810072b47f10] vfs_write at 800789d8",
>  "810072b47f18: [81007e020380:files_cache]
>  [81007e2c2880:filp]",
> --
> 2.6.2
> 
> 

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility



[Crash-utility] [PATCH] Fix typo for 'bf -FF' command

2019-11-20 Thread Austin Kim
When we use 'help bt' command, the instruction of 'bt' is printed as below.
crash> help bt

NAME
  bt - backtrace
...
crash> bf -FF
...
 #4 [810072b47f10] vfs_write at 800789d8
810072b47f18: [81007e020380:files_cache] [81007e2c2880:filp]
810072b47f28: 0002 fff7
810072b47f38: 2b141825d000 sys_write+69
 #5 [810072b47f40] sys_write at 80078f75

But it seems that 'bf -FF' shows misleading information
because invalid output is displayed using 'bf -FF' command as below.
crash>  bf -FF 1
crash: command not found: bf

But 'bt -FF 1' shows valid output.
crash> bt -FF 1
PID: 1  TASK: cf932d40  CPU: 0   COMMAND: "systemd"
 #0 [] (__schedule) from []
[PC: c0c1609c  LR: c0c162c0  SP: cf92fe18  SIZE: 72]
cf92fe18: 40060093 _end+238341700 _end+239562316 
trace_buffer_unlock_commit_regs+280
cf92fe28: 001c754b schedule+132 schedule+124 0004
cf92fe38: 001c754b  __stack_chk_guard 
cf92fe48:  80060013 _end+239554564 
cf92fe58: _end+239562340 schedule+132
 #1 [] (schedule) from []
[PC: c0c162c0  LR: c0c1ab5c  SP: cf92fe60  SIZE: 8]
cf92fe60: _end+239562452 schedule_hrtimeout_range_clock+300

So fix typo for 'bf -FF' command as below to avoid confusion.

Signed-off-by: Austin Kim 
---
 help.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/help.c b/help.c
index 2b2285b..934d8bc 100644
--- a/help.c
+++ b/help.c
@@ -2133,7 +2133,7 @@ char *help_bt[] = {
 "810072b47f38: 2b141825d000 sys_write+69   ",
 " #5 [810072b47f40] sys_write at 80078f75",
 "...",
-"%s> bf -FF",
+"%s> bt -FF",
 "...",
 " #4 [810072b47f10] vfs_write at 800789d8",
 "810072b47f18: [81007e020380:files_cache] 
[81007e2c2880:filp]",
-- 
2.6.2


--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility