Bug 46257 - Не работает perf kmem record на un-def ядре
Summary: Не работает perf kmem record на un-def ядре
Status: NEW
Alias: None
Product: Branch p10
Classification: Unclassified
Component: kernel-image-un-def (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Chikunov
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-25 09:51 MSK by Alexander Makeenkov
Modified: 2023-05-25 19:58 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2023-05-25 09:51:41 MSK
Версии пакетов:
perf-5.15-alt1.x86_64
kernel-image-un-def-6.1.29-alt1.x86_64

Шаги воспроизведения:
# update-kernel -t un-def
# reboot
# apt-get install perf
# perf kmem record date

Получаемый результат:
event syntax error: 'kmem:kmalloc_node'
                     \___ unknown tracepoint

Error:  File /sys/kernel/tracing/events/kmem/kmalloc_node not found.
Hint:   Perhaps this kernel misses some CONFIG_ setting to enable this feature?.

Run 'perf list' for a list of valid events

 Usage: perf record [<options>] [<command>]
    or: perf record [<options>] -- <command> [<options>]

    -e, --event <event>   event selector. use 'perf list' to list available events

Вывод perf list:
# perf list | grep kmem
  kmem:kfree                                         [Tracepoint event]
  kmem:kmalloc                                       [Tracepoint event]
  kmem:kmem_cache_alloc                              [Tracepoint event]
  kmem:kmem_cache_free                               [Tracepoint event]
  kmem:mm_page_alloc                                 [Tracepoint event]
  kmem:mm_page_alloc_extfrag                         [Tracepoint event]
  kmem:mm_page_alloc_zone_locked                     [Tracepoint event]
  kmem:mm_page_free                                  [Tracepoint event]
  kmem:mm_page_free_batched                          [Tracepoint event]
  kmem:mm_page_pcpu_drain                            [Tracepoint event]
  kmem:rss_stat                                      [Tracepoint event]

На ядре 5.10.166-std-def-alt1:
# perf list | grep kmem
  kmem:kfree                                         [Tracepoint event]
  kmem:kmalloc                                       [Tracepoint event]
  kmem:kmalloc_node                                  [Tracepoint event]
  kmem:kmem_cache_alloc                              [Tracepoint event]
  kmem:kmem_cache_alloc_node                         [Tracepoint event]
  kmem:kmem_cache_free                               [Tracepoint event]
  kmem:mm_page_alloc                                 [Tracepoint event]
  kmem:mm_page_alloc_extfrag                         [Tracepoint event]
  kmem:mm_page_alloc_zone_locked                     [Tracepoint event]
  kmem:mm_page_free                                  [Tracepoint event]
  kmem:mm_page_free_batched                          [Tracepoint event]
  kmem:mm_page_pcpu_drain                            [Tracepoint event]
  kmem:rss_stat                                      [Tracepoint event]

При этом в сизифе не воспроизводится на:
perf-6.2-alt1
6.2.16-un-def-alt1
6.1.29-std-def-alt1

Вывод на обоих ядрах в сизифе:
# perf list | grep kmem
  kmem:kfree                                         [Tracepoint event]
  kmem:kmalloc                                       [Tracepoint event]
  kmem:kmem_cache_alloc                              [Tracepoint event]
  kmem:kmem_cache_free                               [Tracepoint event]
  kmem:mm_page_alloc                                 [Tracepoint event]
  kmem:mm_page_alloc_extfrag                         [Tracepoint event]
  kmem:mm_page_alloc_zone_locked                     [Tracepoint event]
  kmem:mm_page_free                                  [Tracepoint event]
  kmem:mm_page_free_batched                          [Tracepoint event]
  kmem:mm_page_pcpu_drain                            [Tracepoint event]
  kmem:rss_stat                                      [Tracepoint event]

P.S. Возможно ошибка в perf, а не в ядре, не могу точно знать.
Comment 1 Vitaly Chikunov 2023-05-25 19:27:58 MSK
Пожалуй надо скопировать perf 6.2 в p10. Спасибо.
Comment 2 Vitaly Chikunov 2023-05-25 19:58:53 MSK
task #321865: added #100: build tag "6.2-alt1" from /gears/l/linux-tools.git