from StructAllocatedByKmalloc s_kmalloc,
StructWithFunctionPtr s_fptrs
where s_kmalloc = s_fptrs
select
s_fptrs.countFieldsOfFunctionPtrs() as amount_of_fptrs,
s_fptrs,
s_kmalloc.getAFunctionCall() as call_site,
count(s_kmalloc.getAFunctionCall()) as kmalloc_times
order by amount_of_fptrs desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Dict, List | |
from amarna.rules.gatherer_rules.AllFunctionCallsGatherer import ( | |
AllFunctionCallsGatherer, | |
FunctionCallType, | |
) | |
from amarna.rules.gatherer_rules.DeclaredFunctionsGatherer import ( | |
DeclaredFunctionsGatherer, | |
FunctionType, | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.2.0-298-g893b896 r2 | |
2.2.0-298-g893b896 r_anal | |
2.2.0-298-g893b896 r_lib | |
2.2.0-298-g893b896 r_egg | |
2.2.0-298-g893b896 r_asm | |
2.2.0-298-g893b896 r_bin | |
2.2.0-298-g893b896 r_cons | |
2.2.0-298-g893b896 r_flag | |
2.2.0-298-g893b896 r_core | |
2.2.0-298-g893b896 r_crypto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = 558648506818474261267926047815663564748461840589382794341879898045098955763377286011667977696237182735822338560444489236573716372544780763605058551497478421716695344033790440922077026632959955153636731271279530879698494369588461643355919436273660662159076752508148851041536971067982979226147537361176787716029952139870201713878877243032756910168897737917616572847826633244329952012102367416741268778934218199568064941081826566443189208251171186979473599344539318984264322522232685526823205535961297363403448343924661327298106111649831891708199941928427214309187101550517524055435481742017905815136802698323157353546126780284827134167563307825000360329981837590299960910817295539277452762627317845829666639427884767086690783733059159124150824416125937870140463622427876694849937911497503756067589073583336959038335208291257532551330243155516181339811318004840305586236286443238140235018884985545095377560037625784549759454267069524818501442321838507902367554708929358105208842619264547469164614046722155870893273726762337 |