@@ -9,31 +9,27 @@ target triple = "bpf-pc-linux"
99
1010@LICENSE = global [4 x i8 ] c "GPL\00 " , section "license"
1111@AT_x = dso_local global %"struct map_t" zeroinitializer , section ".maps" , !dbg !0
12- @ringbuf = dso_local global %"struct map_t.0" zeroinitializer , section ".maps" , !dbg !22
13- @event_loss_counter = dso_local global %"struct map_t.1" zeroinitializer , section ".maps" , !dbg !36
12+ @ringbuf = dso_local global %"struct map_t.0" zeroinitializer , section ".maps" , !dbg !20
13+ @event_loss_counter = dso_local global %"struct map_t.1" zeroinitializer , section ".maps" , !dbg !34
1414
1515; Function Attrs: nounwind
1616declare i64 @llvm.bpf.pseudo (i64 %0 , i64 %1 ) #0
1717
18- define i64 @kprobe_f_1 (ptr %0 ) section "s_kprobe_f_1" !dbg !41 {
18+ define i64 @kprobe_f_1 (ptr %0 ) section "s_kprobe_f_1" !dbg !50 {
1919entry:
20- %"@x_zero" = alloca i64 , align 8
2120 %"@x_key1" = alloca i64 , align 8
2221 %"@x_val" = alloca i64 , align 8
2322 %"@x_key" = alloca i64 , align 8
2423 call void @llvm.lifetime.start.p0 (i64 -1 , ptr %"@x_key" )
25- store i64 0 , ptr %"@x_key" , align 8
24+ store i64 1 , ptr %"@x_key" , align 8
2625 call void @llvm.lifetime.start.p0 (i64 -1 , ptr %"@x_val" )
2726 store i64 1 , ptr %"@x_val" , align 8
2827 %update_elem = call i64 inttoptr (i64 2 to ptr )(ptr @AT_x , ptr %"@x_key" , ptr %"@x_val" , i64 0 )
2928 call void @llvm.lifetime.end.p0 (i64 -1 , ptr %"@x_val" )
3029 call void @llvm.lifetime.end.p0 (i64 -1 , ptr %"@x_key" )
3130 call void @llvm.lifetime.start.p0 (i64 -1 , ptr %"@x_key1" )
32- store i64 0 , ptr %"@x_key1" , align 8
33- call void @llvm.lifetime.start.p0 (i64 -1 , ptr %"@x_zero" )
34- store i64 0 , ptr %"@x_zero" , align 8
35- %update_elem2 = call i64 inttoptr (i64 2 to ptr )(ptr @AT_x , ptr %"@x_key1" , ptr %"@x_zero" , i64 0 )
36- call void @llvm.lifetime.end.p0 (i64 -1 , ptr %"@x_zero" )
31+ store i64 1 , ptr %"@x_key1" , align 8
32+ %delete_elem = call i64 inttoptr (i64 3 to ptr )(ptr @AT_x , ptr %"@x_key1" )
3733 call void @llvm.lifetime.end.p0 (i64 -1 , ptr %"@x_key1" )
3834 ret i64 0
3935}
@@ -47,8 +43,8 @@ declare void @llvm.lifetime.end.p0(i64 immarg %0, ptr nocapture %1) #1
4743attributes #0 = { nounwind }
4844attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
4945
50- !llvm.dbg.cu = !{!38 }
51- !llvm.module.flags = !{!40 }
46+ !llvm.dbg.cu = !{!47 }
47+ !llvm.module.flags = !{!49 }
5248
5349!0 = !DIGlobalVariableExpression (var: !1 , expr: !DIExpression ())
5450!1 = distinct !DIGlobalVariable (name: "AT_x" , linkageName: "global" , scope: !2 , file: !2 , type: !3 , isLocal: false , isDefinition: true )
@@ -57,44 +53,53 @@ attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: re
5753!4 = !{!5 , !11 , !16 , !19 }
5854!5 = !DIDerivedType (tag: DW_TAG_member, name: "type" , scope: !2 , file: !2 , baseType: !6 , size: 64 )
5955!6 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !7 , size: 64 )
60- !7 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 64 , elements: !9 )
56+ !7 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 32 , elements: !9 )
6157!8 = !DIBasicType (name: "int" , size: 32 , encoding: DW_ATE_signed)
6258!9 = !{!10 }
63- !10 = !DISubrange (count: 2 , lowerBound: 0 )
59+ !10 = !DISubrange (count: 1 , lowerBound: 0 )
6460!11 = !DIDerivedType (tag: DW_TAG_member, name: "max_entries" , scope: !2 , file: !2 , baseType: !12 , size: 64 , offset: 64 )
6561!12 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !13 , size: 64 )
66- !13 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 32 , elements: !14 )
62+ !13 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 131072 , elements: !14 )
6763!14 = !{!15 }
68- !15 = !DISubrange (count: 1 , lowerBound: 0 )
64+ !15 = !DISubrange (count: 4096 , lowerBound: 0 )
6965!16 = !DIDerivedType (tag: DW_TAG_member, name: "key" , scope: !2 , file: !2 , baseType: !17 , size: 64 , offset: 128 )
7066!17 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !18 , size: 64 )
71- !18 = !DIBasicType (name: "int32" , size: 32 , encoding: DW_ATE_signed)
72- !19 = !DIDerivedType (tag: DW_TAG_member, name: "value" , scope: !2 , file: !2 , baseType: !20 , size: 64 , offset: 192 )
73- !20 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !21 , size: 64 )
74- !21 = !DIBasicType (name: "int64" , size: 64 , encoding: DW_ATE_signed)
75- !22 = !DIGlobalVariableExpression (var: !23 , expr: !DIExpression ())
76- !23 = distinct !DIGlobalVariable (name: "ringbuf" , linkageName: "global" , scope: !2 , file: !2 , type: !24 , isLocal: false , isDefinition: true )
77- !24 = !DICompositeType (tag: DW_TAG_structure_type, scope: !2 , file: !2 , size: 128 , elements: !25 )
78- !25 = !{!26 , !31 }
79- !26 = !DIDerivedType (tag: DW_TAG_member, name: "type" , scope: !2 , file: !2 , baseType: !27 , size: 64 )
80- !27 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !28 , size: 64 )
81- !28 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 864 , elements: !29 )
82- !29 = !{!30 }
83- !30 = !DISubrange (count: 27 , lowerBound: 0 )
84- !31 = !DIDerivedType (tag: DW_TAG_member, name: "max_entries" , scope: !2 , file: !2 , baseType: !32 , size: 64 , offset: 64 )
85- !32 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !33 , size: 64 )
86- !33 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 8388608 , elements: !34 )
87- !34 = !{!35 }
88- !35 = !DISubrange (count: 262144 , lowerBound: 0 )
89- !36 = !DIGlobalVariableExpression (var: !37 , expr: !DIExpression ())
90- !37 = distinct !DIGlobalVariable (name: "event_loss_counter" , linkageName: "global" , scope: !2 , file: !2 , type: !3 , isLocal: false , isDefinition: true )
91- !38 = distinct !DICompileUnit (language: DW_LANG_C, file: !2 , producer: "bpftrace" , isOptimized: false , runtimeVersion: 0 , emissionKind: LineTablesOnly, globals: !39 )
92- !39 = !{!0 , !22 , !36 }
93- !40 = !{i32 2 , !"Debug Info Version" , i32 3 }
94- !41 = distinct !DISubprogram (name: "kprobe_f_1" , linkageName: "kprobe_f_1" , scope: !2 , file: !2 , type: !42 , flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !38 , retainedNodes: !46 )
95- !42 = !DISubroutineType (types: !43 )
96- !43 = !{!21 , !44 }
97- !44 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !45 , size: 64 )
98- !45 = !DIBasicType (name: "int8" , size: 8 , encoding: DW_ATE_signed)
99- !46 = !{!47 }
100- !47 = !DILocalVariable (name: "ctx" , arg: 1 , scope: !41 , file: !2 , type: !44 )
67+ !18 = !DIBasicType (name: "int64" , size: 64 , encoding: DW_ATE_signed)
68+ !19 = !DIDerivedType (tag: DW_TAG_member, name: "value" , scope: !2 , file: !2 , baseType: !17 , size: 64 , offset: 192 )
69+ !20 = !DIGlobalVariableExpression (var: !21 , expr: !DIExpression ())
70+ !21 = distinct !DIGlobalVariable (name: "ringbuf" , linkageName: "global" , scope: !2 , file: !2 , type: !22 , isLocal: false , isDefinition: true )
71+ !22 = !DICompositeType (tag: DW_TAG_structure_type, scope: !2 , file: !2 , size: 128 , elements: !23 )
72+ !23 = !{!24 , !29 }
73+ !24 = !DIDerivedType (tag: DW_TAG_member, name: "type" , scope: !2 , file: !2 , baseType: !25 , size: 64 )
74+ !25 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !26 , size: 64 )
75+ !26 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 864 , elements: !27 )
76+ !27 = !{!28 }
77+ !28 = !DISubrange (count: 27 , lowerBound: 0 )
78+ !29 = !DIDerivedType (tag: DW_TAG_member, name: "max_entries" , scope: !2 , file: !2 , baseType: !30 , size: 64 , offset: 64 )
79+ !30 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !31 , size: 64 )
80+ !31 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 8388608 , elements: !32 )
81+ !32 = !{!33 }
82+ !33 = !DISubrange (count: 262144 , lowerBound: 0 )
83+ !34 = !DIGlobalVariableExpression (var: !35 , expr: !DIExpression ())
84+ !35 = distinct !DIGlobalVariable (name: "event_loss_counter" , linkageName: "global" , scope: !2 , file: !2 , type: !36 , isLocal: false , isDefinition: true )
85+ !36 = !DICompositeType (tag: DW_TAG_structure_type, scope: !2 , file: !2 , size: 256 , elements: !37 )
86+ !37 = !{!38 , !43 , !44 , !19 }
87+ !38 = !DIDerivedType (tag: DW_TAG_member, name: "type" , scope: !2 , file: !2 , baseType: !39 , size: 64 )
88+ !39 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !40 , size: 64 )
89+ !40 = !DICompositeType (tag: DW_TAG_array_type, baseType: !8 , size: 64 , elements: !41 )
90+ !41 = !{!42 }
91+ !42 = !DISubrange (count: 2 , lowerBound: 0 )
92+ !43 = !DIDerivedType (tag: DW_TAG_member, name: "max_entries" , scope: !2 , file: !2 , baseType: !6 , size: 64 , offset: 64 )
93+ !44 = !DIDerivedType (tag: DW_TAG_member, name: "key" , scope: !2 , file: !2 , baseType: !45 , size: 64 , offset: 128 )
94+ !45 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !46 , size: 64 )
95+ !46 = !DIBasicType (name: "int32" , size: 32 , encoding: DW_ATE_signed)
96+ !47 = distinct !DICompileUnit (language: DW_LANG_C, file: !2 , producer: "bpftrace" , isOptimized: false , runtimeVersion: 0 , emissionKind: LineTablesOnly, globals: !48 )
97+ !48 = !{!0 , !20 , !34 }
98+ !49 = !{i32 2 , !"Debug Info Version" , i32 3 }
99+ !50 = distinct !DISubprogram (name: "kprobe_f_1" , linkageName: "kprobe_f_1" , scope: !2 , file: !2 , type: !51 , flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !47 , retainedNodes: !55 )
100+ !51 = !DISubroutineType (types: !52 )
101+ !52 = !{!18 , !53 }
102+ !53 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !54 , size: 64 )
103+ !54 = !DIBasicType (name: "int8" , size: 8 , encoding: DW_ATE_signed)
104+ !55 = !{!56 }
105+ !56 = !DILocalVariable (name: "ctx" , arg: 1 , scope: !50 , file: !2 , type: !53 )
0 commit comments