This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains hidden or 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
#include <stdio.h> | |
typedef struct clothes { | |
char color[10]; | |
int length; | |
} Clothes; | |
typedef struct person_t { | |
int age; | |
char name[10]; |
This file contains hidden or 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
std::string getArgName(Argument& arg, std::vector<DbgDeclareInst*> dbgInstList) | |
{ | |
Function *F = arg.getParent(); | |
for (auto I : dbgInstList) | |
{ | |
if (auto dbi = dyn_cast<DbgDeclareInst>(I)) | |
if (auto DLV = dyn_cast<DILocalVariable>(dbi->getVariable())) | |
if (DLV->getArg() == arg.getArgNo() + 1 | |
&& !DLV->getName().empty() | |
&& DLV->getScope()->getSubprogram() == F->getSubprogram()) |
This file contains hidden or 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
bool isDIStructType(DIType *dt) | |
{ | |
if (dt == nullptr) | |
return false; | |
return (dt->getTag() == dwarf::DW_TAG_structure_type); | |
} | |
void getFieldNames(DIType *dt) | |
{ | |
// check if dt is of struct type |
This file contains hidden or 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
#!/bin/bash | |
input="/local/device/bc-files/benchmarks" | |
bc_files_dir="/local/device/bc-files/" | |
while IFS= read -r line | |
do | |
bench_dir="${bc_files_dir}/${line}" | |
pushd ${bench_dir} > /dev/null | |
bench_name="${PWD##*/}" |
This file contains hidden or 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
net_ethernet/dummy | |
net_ethernet/ixgbe | |
net_ethernet/alx | |
block/null_blk | |
edac/skx_edac | |
edac/sb_edac | |
arch_x86/msr | |
can-raw | |
md/dm-zero | |
hwmon/acpi_power_meter |
This file contains hidden or 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
char *mg_json_get_str(struct mg_str json, const char *path) { | |
int n, toklen; | |
char *result = NULL; | |
if ((n = mg_json_get(json.ptr, (int) json.len, path, &toklen)) >= 0 && | |
json.ptr[n] == '"') { | |
if ((result = (char *) calloc(1, (size_t) toklen)) != NULL && | |
!json_unescape(json.ptr + n + 1, (size_t) (toklen - 2), result, | |
(size_t) toklen)) { | |
free(result); | |
result = NULL; |
This file contains hidden or 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
Call Path: napi_gro_receive->dev_gro_receive->napi_gro_complete->netif_receive_skb_internal->__netif_receive_skb->__netif_receive_skb_core->skb_vlan_untag->pskb_may_pull.2063->__pskb_pull_tail->pskb_expand_head->__kmalloc_reserve | |
- kernel func (napi_gro_receive) | allocator (__kmalloc_reserve) | driver call site (ixgbe_rx_skb) - %17 = call i32 @napi_gro_receive(%struct.napi_struct* %15, %struct.sk_buff* %16) #11, !dbg !281511 | |
Call Path: netif_receive_skb->netif_receive_skb_internal->__netif_receive_skb->__netif_receive_skb_core->skb_vlan_untag->pskb_may_pull.2063->__pskb_pull_tail->pskb_expand_head->__kmalloc_reserve | |
- kernel func (netif_receive_skb) | allocator (__kmalloc_reserve) | driver call site (ixgbe_rx_skb) - %12 = call i32 @netif_receive_skb(%struct.sk_buff* %11) #11, !dbg !281507 | |
Call Path: netif_set_xps_queue->kzalloc.1679 | |
- kernel func (netif_set_xps_queue) | allocator (kzalloc.1679) | driver call site (ixgbe_configure_tx_ring) - %170 = call i32 @netif_set_xps_queue(%struct.net_device* %16 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
; ModuleID = 'alias.bc' | |
source_filename = "llvm-link" | |
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" | |
target triple = "x86_64-pc-linux-gnu" | |
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, %struct._IO_codecvt*, %struct._IO_wide_data*, %struct._IO_FILE*, i8*, i64, i32, [20 x i8] } | |
%struct._IO_marker = type opaque | |
%struct._IO_codecvt = type opaque | |
%struct._IO_wide_data = type opaque | |
%struct.KlvTag_t = type { i8, i32, i8*, %struct.KlvTag_t* } |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
// Dummy structures to represent kernel structures | |
struct device { | |
// Simplified device structure | |
int dummy; | |
}; |
OlderNewer