401 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

add filter during PTT device initialization

已完成
任务
创建于  
2022-11-10 10:27

There is no filter in the initialization function of the PTT device
to filter out invalid reported from BIOS.

评论 (2)

shaowangming 创建了任务

Hi shaowangming, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @YangYingliang , @成坚 (CHENG Jian) , @jiaoff , @zhengzengkai , @刘勇强 , @wangxiongfeng , @朱科潜 , @WangShaoBo , @lujialin , @wuxu_buque , @Xu Kuohai , @冷嘲啊 , @Lingmingqiang , @yuzenghui , @juntian , @OSSIM , @陈结松 , @whoisxxx , @koulihong , @刘恺 , @hanjun-guo , @woqidaideshi , @Chiqijun , @Kefeng , @ThunderTown , @AlexGuo , @kylin-mayukun , @Zheng Zucheng , @柳歆 , @Jackie Liu , @zhujianwei001 , @郑振鹏 , @SuperSix173 , @colyli , @Zhang Yi , @htforge , @Qiuuuuu , @Yuehaibing , @xiehaocheng , @guzitao , @CTC-Xibo.Wang , @zhanghongchen , @chen wei , @Jason Zeng , @Xie XiuQi

openeuler-ci-bot 添加了
 
sig/Kernel
标签

验证通过日志:
root@fpga:/root# devmem 0x303089fe80
0x40B84080
root@fpga:/root# devmem 0x
root@fpga:/root# devmem 0x303089fe0 40B84000 340B84000240B84000 40B8400040B84000040B84000x40B8400040B84000
root@fpga:/root#
root@fpga:/root# devmem 0x303089fe0 32 0x40B84000
root@fpga:/root# devmem 0x303089fe0
0x40B84000
root@fpga:/root# rmmo
root@fpga:/root# rmmod hiasi_ptt
root@fpga:/root# lsmo
root@fpga:/root# lsmod
root@fpga:/root# insm
root@fpga:/root# insmod /teptrt
root@fpga:/root# insmod /ptt_test/hisi
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root#
root@fpga:/root#
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180001
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 5
sys_perf_event_open: pid -1 cpu 1 group_fd -1 flags 0x8 = 6
sys_perf_event_open: pid -1 cpu 2 group_fd -1 flags 0x8 = 7
sys_perf_event_open: pid -1 cpu 3 group_fd -1 flags 0x8 = 8

perf_event_attr:
type 1
size 120
config 0x9
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
inherit 1
exclude_kernel 1
exclude_hv 1
mmap 1
comm 1
task 1
sample_id_all 1
exclude_guest 1
mmap2 1
comm_exec 1
ksymbol 1
bpf_event 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 9
sys_perf_event_open: pid -1 cpu 1 group_fd -1 flags 0x8 = 10
sys_perf_event_open: pid -1 cpu 2 group_fd -1 flags 0x8 = 11
sys_perf_event_open: pid -1 cpu 3 group_fd -1 flags 0x8 = 12
mmap size 528384B
AUX area mmap length 16777216

perf_event_attr:
type 1
size 120
config 0x9
watermark 1
sample_id_all 1
bpf_event 1
{ wakeup_events, wakeup_watermark } 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 13
sys_perf_event_open: pid -1 cpu 1 group_fd -1 flags 0x8 = 14
sys_perf_event_open: pid -1 cpu 2 group_fd -1 flags 0x8 = 15
sys_perf_event_open: pid -1 cpu 3 group_fd -1 flags 0x8 = 16
mmap size 528384B
Synthesizing TSC conversion information
Synthesizing auxtrace information
perf_event__synthesize_bpf_events: can't get next program: Function not implemented
Couldn't synthesize bpf events.
Control descriptor is not initialized

root@fpga:/root#
root@fpga:/root#
root@fpga:/root# dev
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &

root@fpga:/root#
root@fpga:/root#
root@fpga:/root#
root@fpga:/root#
root@fpga:/root#
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
ter=0x80001,type=

2,format=1,direction=1/ -vvv &
2er=0x80001,type

=2,format=1,direction=1/ -vvv &
er=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# event syntax error: 'hisi_ptt0_2/fil2er=0x80001,type=2,format=1,direction=1/'
___ unknown term 'fil2er' for pmu 'hisi_ptt0_2'

valid terms: format,filter,type,direction,config,config1,config2,name,period,freq,branch_type,time,call-graph,stack-size,no-inherit,inherit,max-stack,nr,no-overwrite,overwrite,driver-config,percore,aux-output,aux-sample-size

Initial error:
event syntax error: 'hisi_ptt0_2/fil2er=0x80001,type=2,format=1,direction=1/'
___ unknown term 'fil2er' for pmu 'hisi_ptt0_2'

valid terms: format,filter,type,direction,config,config1,config2,name,period,freq,branch_type,time,call-graph,stack-size,no-inherit,inherit,max-stack,nr,no-overwrite,overwrite,driver-config,percore,aux-output,aux-sample-size
Run 'perf list' for a list of valid events

Usage: perf record [] []
or: perf record [] -- []

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

[2]+ Done(129) perf record -m,16M -e hisi_ptt0_2/fil2er=0x80001,type=2,format=1,direction=1/ -vvv
root@fpga:/root#
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8
sys_perf_event_open failed, error -22
switching off cloexec flag

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off exclude_guest, exclude_host

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off sample_id_all

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/).
/bin/dmesg | grep -i perf may provide additional information.

[2]+ Done(255) perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/ -vvv
root@fpga:/root#
root@fpga:/root#
root@fpga:/root#
root@fpga:/root#
root@fpga:/root#
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/fil2er=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# lsmod
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# devmem 0x303089fe0
root@fpga:/root# devmem 0x303089fe0 32 0x40B840001
root@fpga:/root#
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/fil2er=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# lsmod
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# devmem 0x303089fe0
root@fpga:/root# devmem 0x303089fe0 32 0x40B84000
root@fpga:/root# devmem 0x303089fe0
0x40B84001
root@fpga:/root# perfperf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180001
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8
sys_perf_event_open failed, error -16
Error:
The sys_perf_event_open() syscall returned with 16 (Device or resource busy) for event (hisi_ptt0_2/filter=0x80001,type=2,format=1,direction=1/).
/bin/dmesg | grep -i perf may provide additional information.

[2]+ Done(255) perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type=2,format=1,direction=1/ -vvv
root@fpga:/root#
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root#
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8
sys_perf_event_open failed, error -22
switching off cloexec flag

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off exclude_guest, exclude_host

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off sample_id_all

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/).
/bin/dmesg | grep -i perf may provide additional information.

[2]+ Done(255) perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/ -vvv
root@fpga:/root#
root@fpga:/root# ef
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# devmem 0x303089fe0
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
root@fpga:/root# devmem 0x303089fe0
0x40B84001
root@fpga:/root# lspci -t[ 4730.033589] random: crng init done
v
-+-[0000:40]-+-00.0-[41]--+-00.0 Device 8086:10fb
| | -00.1 Device 8086:10fb
| -01.0-[42]----00.0 Device 2646:500e
+-[0000:34]-+-00.0-[35]--+-00.0 Device 19e5:a224
| | -00.1 Device 19e5:a224
| -01.0 Device 19e5:a22b
+-[0000:2e]-+-08.0 Device 19e5:a12d
| +-09.0 Device 19e5:a12e
| -0b.0 Device 19e5:a122
-[0000:00]-
root@fpga:/root#
root@fpga:/root# lspci -tv
root@fpga:/root# devmem 0x303089fe0
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# devmem 0x303089fe0
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001808
root@fpga:/root#
root@fpga:/root# devmem 0x303089fe0 32 0x40B840081
root@fpga:/root# rmmo
root@fpga:/root# rmmod
BusyBox v1.35.0 (2022-01-11 14:29:12 CST) multi-call binary.

Usage: rmmod MODULE...

Unload kernel modules
root@fpga:/root# rmm
root@fpga:/root# rmmod hisi_ptt
rmmod: remove 'hisi_ptt': Resource temporarily unavailable
root@fpga:/root# lsmo
root@fpga:/root# lsmod
hisi_ptt 20480 4 - Live 0xffff800008e80000
root@fpga:/root# rmmo
root@fpga:/root# rmmod hisi_ptt
rmmod: remove 'hisi_ptt': Resource temporarily unavailable
root@fpga:/root# insm
root@fpga:/root# insmod /libpcipt
root@fpga:/root# insmod /ptt_test/hisi+p
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
insmod: can't insert '/ptt_test/hisi_ptt.ko': File exists
root@fpga:/root# top
Mem: 329848K used, 7253040K free, 4K shrd, 0K buff, 184704K cached
CPU: 4.2% usr 12.0% sys 0.0% nic 76.5% idle 0.0% io 3.5% irq 3.5% sirq
Load average: 0.02 0.02 0.00 1/73 229
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
229 161 root R 3904 0.0 0 15.5 top
11 2 root IW 0 0.0 3 2.1 [rcu_preempt]
217 2 root IW 0 0.0 1 0.7 [kworker/u8:3-ev]
205 161 root S 98832 1.3 3 0.0 perf record -m,16M -e hisi_ptt0_2/
1 0 root S 4036 0.0 1 0.0 {init} /bin/sh /init
161 1 root S 3904 0.0 1 0.0 sh
151 1 root S 2836 0.0 0 0.0 /usr/sbin/dropbear
152 1 root S 2440 0.0 3 0.0 /usr/bin/fpga_monitor
215 2 root IW 0 0.0 2 0.0 [kworker/u8:1-hc]
216 2 root IW 0 0.0 2 0.0 [kworker/u8:2-ev]
13 2 root IW 0 0.0 0 0.0 [kworker/0:1-eve]
39 2 root SW 0 0.0 2 0.0 [kcompactd0]
2 0 root SW 0 0.0 0 0.0 [kthreadd]
41 2 root SWN 0 0.0 1 0.0 [khugepaged]
32 2 root IW 0 0.0 2 0.0 [kworker/2:1-mm
]
34 2 root SW 0 0.0 1 0.0 [kdevtmpfs]
226 2 root IW 0 0.0 1 0.0 [kworker/u8:0-ev]
10 2 root SW 0 0.0 0 0.0 [ksoftirqd/0]
31 2 root IW 0 0.0 3 0.0 [kworker/3:1-mm_]
18 2 root IW 0 0.0 1 0.0 [kworker/1:0-mm_]
Mem: 329848K used, 7253040K free, 4K shrd, 0K buff, 184704K cached
CPU: 0.3% usr 1.2% sys 0.0% nic 97.4% idle 0.0% io 0.4% irq 0.4% sirq
Load average: 0.02 0.02 0.00 2/73 229
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
229 161 root R 3904 0.0 0 1.6 top
217 2 root IW 0 0.0 1 0.1 [kworker/u8:3-hc]
11 2 root IW 0 0.0 3 0.1 [rcu_preempt]
205 161 root S 98832 1.3 3 0.0 perf record -m,16M -e hisi_ptt0_2/
215 2 root IW 0 0.0 2 0.0 [kworker/u8:1-hc]
13 2 root IW 0 0.0 0 0.0 [kworker/0:1-eve]
1 0 root S 4036 0.0 1 0.0 {init} /bin/sh /init
161 1 root S 3904 0.0 1 0.0 sh
151 1 root S 2836 0.0 0 0.0 /usr/sbin/dropbear
152 1 root S 2440 0.0 3 0.0 /usr/bin/fpga_monitor
216 2 root IW 0 0.0 2 0.0 [kworker/u8:2-ev]
39 2 root SW 0 0.0 2 0.0 [kcompactd0]
2 0 root SW 0 0.0 0 0.0 [kthreadd]
41 2 root SWN 0 0.0 1 0.0 [khugepaged]
32 2 root IW 0 0.0 2 0.0 [kworker/2:1-mm_]
34 2 root SW 0 0.0 1 0.0 [kdevtmpfs]
226 2 root IW 0 0.0 1 0.0 [kworker/u8:0-ev]
10 2 root SW 0 0.0 0 0.0 [ksoftirqd/0]
31 2 root IW 0 0.0 3 0.0 [kworker/3:1-mm_]
18 2 root IW 0 0.0 1 0.0 [kworker/1:0-mm_]
Mem: 329848K used, 7253040K free, 4K shrd, 0K buff, 184704K cached
CPU: 0.3% usr 1.3% sys 0.0% nic 97.5% idle 0.0% io 0.4% irq 0.3% sirq
Load average: 0.02 0.02 0.00 1/73 229
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
229 161 root R 3904 0.0 0 1.4 top
217 2 root IW 0 0.0 1 0.1 [kworker/u8:3-ev]
11 2 root IW 0 0.0 3 0.0 [rcu_preempt]
215 2 root IW 0 0.0 2 0.0 [kworker/u8:1-ev]
205 161 root S 98832 1.3 3 0.0 perf record -m,16M -e hisi_ptt0_2/
1 0 root S 4036 0.0 1 0.0 {init} /bin/sh /init
161 1 root S 3904 0.0 1 0.0 sh
151 1 root S 2836 0.0 0 0.0 /usr/sbin/dropbear
152 1 root S 2440 0.0 3 0.0 /usr/bin/fpga_monitor
216 2 root IW 0 0.0 2 0.0 [kworker/u8:2-ev]
13 2 root IW 0 0.0 0 0.0 [kworker/0:1-mm_]
39 2 root SW 0 0.0 2 0.0 [kcompactd0]
2 0 root SW 0 0.0 0 0.0 [kthreadd]
41 2 root SWN 0 0.0 1 0.0 [khugepaged]
32 2 root IW 0 0.0 2 0.0 [kworker/2:1-mm_]
34 2 root SW 0 0.0 1 0.0 [kdevtmpfs]
226 2 root IW 0 0.0 1 0.0 [kworker/u8:0-ev]
10 2 root SW 0 0.0 0 0.0 [ksoftirqd/0]
31 2 root IW 0 0.0 3 0.0 [kworker/3:1-mm_]
18 2 root IW 0 0.0 1 0.0 [kworker/1:0-mm_]
Mem: 329848K used, 7253040K free, 4K shrd, 0K buff, 184704K cached
CPU: 0.3% usr 1.1% sys 0.0% nic 97.7% idle 0.0% io 0.4% irq 0.3% sirq
Load average: 0.09 0.04 0.01 1/73 229
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
229 161 root R 3904 0.0 0 1.4 top
217 2 root IW 0 0.0 1 0.1 [kworker/u8:3-hc]
11 2 root IW 0 0.0 3 0.0 [rcu_preempt]
215 2 root IW 0 0.0 2 0.0 [kworker/u8:1-ev]
205 161 root S 98832 1.3 3 0.0 perf record -m,16M -e hisi_ptt0_2/
1 0 root S 4036 0.0 1 0.0 {init} /bin/sh /init
161 1 root S 3904 0.0 1 0.0 sh
151 1 root S 2836 0.0 0 0.0 /usr/sbin/dropbear
152 1 root S 2440 0.0 3 0.0 /usr/bin/fpga_monitor
216 2 root IW 0 0.0 2 0.0 [kworker/u8:2-ev]
13 2 root IW 0 0.0 0 0.0 [kworker/0:1-eve]
39 2 root SW 0 0.0 2 0.0 [kcompactd0]
2 0 root SW 0 0.0 0 0.0 [kthreadd]
41 2 root SWN 0 0.0 1 0.0 [khugepaged]
32 2 root IW 0 0.0 2 0.0 [kworker/2:1-mm_]
34 2 root SW 0 0.0 1 0.0 [kdevtmpfs]
226 2 root IW 0 0.0 1 0.0 [kworker/u8:0-ev]
10 2 root SW 0 0.0 0 0.0 [ksoftirqd/0]
31 2 root IW 0 0.0 3 0.0 [kworker/3:1-mm_]
18 2 root IW 0 0.0 1 0.0 [kworker/1:0-mm_]
Mem: 329848K used, 7253040K free, 4K shrd, 0K buff, 184704K cached
CPU: 1.4% usr 5.2% sys 0.0% nic 90.0% idle 0.0% io 1.6% irq 1.6% sirq
Load average: 0.09 0.04 0.01 1/73 229
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
229 161 root R 3904 0.0 0 6.0 top
11 2 root IW 0 0.0 3 0.4 [rcu_preempt]
205 161 root S 98832 1.3 3 0.0 perf record -m,16M -e hisi_ptt0_2/
1 0 root S 4036 0.0 1 0.0 {init} /bin/sh /init
161 1 root S 3904 0.0 1 0.0 sh
151 1 root S 2836 0.0 0 0.0 /usr/sbin/dropbear
152 1 root S 2440 0.0 3 0.0 /usr/bin/fpga_monitor
215 2 root IW 0 0.0 2 0.0 [kworker/u8:1-ev]
217 2 root IW 0 0.0 1 0.0 [kworker/u8:3-ev]
216 2 root IW 0 0.0 2 0.0 [kworker/u8:2-ev]
13 2 root IW 0 0.0 0 0.0 [kworker/0:1-mm_]
39 2 root SW 0 0.0 2 0.0 [kcompactd0]
2 0 root SW 0 0.0 0 0.0 [kthreadd]
41 2 root SWN 0 0.0 1 0.0 [khugepaged]
32 2 root IW 0 0.0 2 0.0 [kworker/2:1-mm_]
34 2 root SW 0 0.0 1 0.0 [kdevtmpfs]
226 2 root IW 0 0.0 1 0.0 [kworker/u8:0-ev]
10 2 root SW 0 0.0 0 0.0 [ksoftirqd/0]
31 2 root IW 0 0.0 3 0.0 [kworker/3:1-mm_]
18 2 root IW 0 0.0 1 0.0 [kworker/1:0-mm_]

root@fpga:/root# kill -9 2505
root@fpga:/root#
[1]+ Killed perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type=2,format=1,direction=1/ -vvv
root@fpga:/root#
root@fpga:/root# rmmo
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# insm
root@fpga:/root# insmod
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# kill -9 205
root@fpga:/root# top
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root#
root@fpga:/root# d
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# kill -9 205
root@fpga:/root# top
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# lsmod
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# rmmod
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
root@fpga:/root# devmem 0x303089fe0 32 0x40B84008
root@fpga:/root#
root@fpga:/root# devmem 0x303089fe0 32 0x40B84008
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# kill -9 205
root@fpga:/root# top
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# lsmod
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# rmmod
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
root@fpga:/root# devmem 0x303089fe0 32 0x40B84008
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
root@fpga:/root#
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
0x40B84001
root@fpga:/root# rmmo
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root#
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# devmem 0x303089fe0
root@fpga:/root# devmem 0x303089fe0 32 0x40B84001
root@fpga:/root# devmem 0x303089fe0 32 0x40B84008
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root#
root@fpga:/root#
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180001
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8
sys_perf_event_open failed, error -22
switching off cloexec flag

perf_event_attr:
type 14
size 120
config 0x102180001
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off exclude_guest, exclude_host

perf_event_attr:
type 14
size 120
config 0x102180001
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off sample_id_all

perf_event_attr:
type 14
size 120
config 0x102180001
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (hisi_ptt0_2/filter=0x80001,type=2,format=1,direction=1/).
/bin/dmesg | grep -i perf may provide additional information.

[1]+ Done(255) perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type=2,format=1,direction=1/ -vvv
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8
sys_perf_event_open failed, error -22
switching off cloexec flag

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off exclude_guest, exclude_host

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off sample_id_all

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/).
/bin/dmesg | grep -i perf may provide additional information.

[1]+ Done(255) perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/ -vvv
root@fpga:/root#
root@fpga:/root# rmmo
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root#
root@fpga:/root#
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# rmmod hisi_ptt
root@fpga:/root# devmem 0x303089fe0
root@fpga:/root# devmem 0x303089fe0 32 0x40B8400104000400004000140004000
root@fpga:/root#
root@fpga:/root# devmem 0x303089fe0 32 0x40014000
0x40014000
root@fpga:/root# insm
root@fpga:/root# insmod /ptt
root@fpga:/root# insmod /ptt_test/h
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180001
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 5
sys_perf_event_open: pid -1 cpu 1 group_fd -1 flags 0x8 = 6
sys_perf_event_open: pid -1 cpu 2 group_fd -1 flags 0x8 = 7
sys_perf_event_open: pid -1 cpu 3 group_fd -1 flags 0x8 = 8

perf_event_attr:
type 1
size 120
config 0x9
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
inherit 1
exclude_kernel 1
exclude_hv 1
mmap 1
comm 1
task 1
sample_id_all 1
exclude_guest 1
mmap2 1
comm_exec 1
ksymbol 1
bpf_event 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 9
sys_perf_event_open: pid -1 cpu 1 group_fd -1 flags 0x8 = 10
sys_perf_event_open: pid -1 cpu 2 group_fd -1 flags 0x8 = 11
sys_perf_event_open: pid -1 cpu 3 group_fd -1 flags 0x8 = 12
mmap size 528384B
AUX area mmap length 16777216

perf_event_attr:
type 1
size 120
config 0x9
watermark 1
sample_id_all 1
bpf_event 1
{ wakeup_events, wakeup_watermark } 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8 = 13
sys_perf_event_open: pid -1 cpu 1 group_fd -1 flags 0x8 = 14
sys_perf_event_open: pid -1 cpu 2 group_fd -1 flags 0x8 = 15
sys_perf_event_open: pid -1 cpu 3 group_fd -1 flags 0x8 = 16
mmap size 528384B
Synthesizing TSC conversion information
Synthesizing auxtrace information
perf_event__synthesize_bpf_events: can't get next program: Function not implemented
Couldn't synthesize bpf events.
Control descriptor is not initialized

root@fpga:/root#
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# insmod /ptt_test/hisi_ptt.ko
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80001,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type

=2,format=1,direction=1/ -vvv &
root@fpga:/root# nr_cblocks: 0
affinity: SYS
mmap flush: 1
comp level: 0

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0x8
sys_perf_event_open failed, error -22
switching off cloexec flag

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1
exclude_guest 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off exclude_guest, exclude_host

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1
sample_id_all 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
switching off sample_id_all

perf_event_attr:
type 14
size 120
config 0x102180002
{ sample_period, sample_freq } 1
sample_type IP|TID|TIME|CPU|IDENTIFIER
read_format ID
disabled 1
inherit 1

sys_perf_event_open: pid -1 cpu 0 group_fd -1 flags 0
sys_perf_event_open failed, error -22
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/).
/bin/dmesg | grep -i perf may provide additional information.

[2]+ Done(255) perf record -m,16M -e hisi_ptt0_2/filter=0x80002,type=2,format=1,direction=1/ -vvv
root@fpga:/root#
root@fpga:/root#
Network error: Software caused connection abort

Session stopped
- Press to exit tab
- Press R to restart session
- Press S to save terminal output to file

Session stopped
- Press to exit tab
- Press R to restart session
- Press S to save terminal output to file

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助