similar to: [LLVMdev] How to instrument source code

Displaying 20 results from an estimated 40000 matches similar to: "[LLVMdev] How to instrument source code"

2013 Jun 27
1
[LLVMdev] Generate code from Clang ast which is dumped in xml
Hi, I'm working on AST that Clang generates on sample codes in xml file. Is there a standard way of parsing this xml file, modifying it (instrumenting original source code) and then generate instrumented code from the xml file. I don't see any reference/documentation in this regards. Please suggest any links to relevant information. Many Thanks K -------------- next part --------------
2011 Apr 05
0
[LLVMdev] instrument a byte code with llvm
On 4/5/11 11:36 AM, Nabila ABDESSAIED wrote: > > > 2011/4/5 John Criswell <criswell at illinois.edu > <mailto:criswell at illinois.edu>> > > On 4/5/11 11:22 AM, Nabila ABDESSAIED wrote: >> hi, >> I'm newer in llvm >> i would like to instrument a byte code with a pass and as a >> result i would like to get an
2011 Apr 05
4
[LLVMdev] instrument a byte code with llvm
hi, I'm newer in llvm i would like to instrument a byte code with a pass and as a result i would like to get an instrumented byte code. i would like that a pass add a method (which calculate the number of instructions) in the end of each block. the instrumented code should contain in each block a method that calculate the number of instructions Please Help me thank you -- Nabila ABDESSAIED
2014 Jan 22
2
[LLVMdev] source-to-source transformations using LLVM/ Clang
Hello, I need some help in understanding few things related to llvm/clang. What I want to do is to take a C source code and then get some information from source code like the number of branches, load/store count etc. and then instrument the source code with this obtained information. At the moment, I can think of 2 approaches: (1) Clang: Generate AST from the source code, obtain these counts
2011 Nov 03
0
[LLVMdev] Instrument examples
Hi, > I am new to LLVM. I want to use LLVM to instrument codes, such as > function calls and basic blocks. But I don't know where to start. I wonder > if there are any example codes to show how to instrument codes in the IR > level? No idea what exactly you want to achieve, but let me try. First, you might need a function doing the instrument. Say, void
2011 Nov 03
0
[LLVMdev] Instrument examples
On 10/31/2011 2:53 AM, zhouxu(NUDT) wrote: > Hi, > I am new to LLVM. I want to use LLVM to instrument codes, such as > function calls and basic blocks. But I don't know where to start. I > wonder if there are any example codes to show how to instrument codes > in the IR level? First, have you read the Language Reference Manual, the Programmer's Manual, and the How
2016 Mar 10
4
instrumenting device code with gpucc
It's hard to tell what is wrong without a concrete example. E.g., what is the program you are instrumenting? What is the definition of the hook function? How did you link that definition with the binary? One thing suspicious to me is that you may have linked the definition of _Cool_MemRead_Hook as a host function instead of a device function. AFAIK, PTX assembly cannot be linked. So, if you
2011 Nov 04
1
[LLVMdev] Instrument examples
> No idea what exactly you want to achieve, but let me try. > > First, you might need a function doing the instrument. Say, > > void HowManyTimeThisFunctionGetCalled(); > > Then you can insert a call to the function above while creating > a LLVM function [1]. In that way, every time that LLVM function > get called the function doing the instrument will be called.
2018 Jan 04
0
writing llvm pass to instrument read and write
Hello All, I am trying to write llvm pass to instrument function in external library. I am using clang to automatically load my pass. I have test.cpp which calls functions in library testlib.so. I have written llvm pass to instrument all reads and writes in test.cpp and call function(recordRW) in testlib.so. this is how my pass looks like - for (auto &BB : F) { for (auto &I : BB)
2016 Mar 15
2
instrumenting device code with gpucc
Hi Jingyue, Sorry to ask again, but how exactly could I glue the fatbin with the instrumented host code? Or does it mean we actually cannot instrument both the host & device code at the same time? Thanks! yuanfeng On Tue, Mar 15, 2016 at 10:09 AM, Jingyue Wu <jingyue at google.com> wrote: > Including fatbin into host code should be done in frontend. > > On Mon, Mar 14, 2016
2014 Feb 25
2
[LLVMdev] [GSoC 2014] Using LLVM as a code-generation backend for Valgrind
On 02/25/2014 04:50 PM, John Criswell wrote: > > I think a more interesting idea would be to use LLVM to perform > instrumentation and then to use Valgrind to instrument third-party > libraries linked into the program. > > What I'm imagining is this: Let's say you instrument a program with > SAFECode or Asan to find memory safety errors. When you run the program >
2011 Oct 31
4
[LLVMdev] Instrument examples
Hi, I am new to LLVM. I want to use LLVM to instrument codes, such as function calls and basic blocks. But I don't know where to start. I wonder if there are any example codes to show how to instrument codes in the IR level? Thanks. -- zhouxu -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jun 28
2
NOTICE: cannot instrument return of fd_intr at 7b7d6278: non-canonical return instruction
Folks; During a jumpstart (2nd boot) of a Sun Fire 240 with Solaris 10 Update 3 (11/06), I noticed the following message; Jun 27 11:43:33 first fbt: NOTICE: cannot instrument return of fd_intr at 7b7d6278: non-canonical return instruction Kernel level was Generic_118833-33. Jumpstart was conducted using the standard JET modules. What gives? The jumpstart worked though. Solaris 10 installed
2016 Mar 13
2
instrumenting device code with gpucc
Hey Jingyue, Thanks for being so responsive! I finally figured out a way to resolve the issue: all I have to do is to use `-only-needed` when merging the device bitcodes with llvm-link. However, since we actually need to instrument the host code as well, I encountered another issue when I tried to glue the instrumented host code and fatbin together. When I only instrumented the device code, I
2016 Mar 05
2
instrumenting device code with gpucc
On Fri, Mar 4, 2016 at 5:50 PM, Yuanfeng Peng <yuanfeng.jack.peng at gmail.com> wrote: > Hi Jingyue, > > My name is Yuanfeng Peng, I'm a PhD student at UPenn. I'm sorry to bother > you, but I'm having trouble with gpucc in my project, and I would be really > grateful for your help! > > Currently we're trying to instrument CUDA code using LLVM 3.9, and
2007 Mar 02
1
instrument sfmmu_kdtlb_miss:entry??
Hi, is there a way to instrument entry of assembler function "sfmmu_kdtlb_miss" to use Dtrace infrastructure?? i know there is no "supported/standar" one since it does not appear as a fbt available probe. It has no "save" instruction and that seems to be one of the reasons. I''m talking about test system so maybe we can hack it with mdb?? TIA,
2018 Feb 18
0
Instrument in rddtools
Hello! I have encountered some problems in implementing the function "rdd_reg_lm" (for the fuzzy case) in the rddtools R package. By looking at the function, I understood that an IV regression is actually implemented automatically by the function but I did not understand where to specify the instrument to be used to clear my treatment variable from endogeneity. The command I used to
2004 Sep 10
0
FlacPak - Free lossless instrument compression
Thought I'd send an update on FlacPak a file format for compressing instrument files (although its more generically a method of compressing files containing binary and audio with most of the smarts being in the encoder file handlers). It uses zlib for compressing the binary data and FLAC (of course :) for compressing the audio. There is now a CVS tarball of libInstPatch which contains a
2011 Mar 12
3
pass character vector in instrument field of get.hist.quote function
I am new to R so I apologize if my question is trivial. I have not been able to figure out whether what I want to do is even possible. I have a data frame of stock ticker symbols which I store into R space from a txt file as follows: tickers <- read.csv("stocks.txt", header=FALSE, sep=",") tickers <- tickers[1] / the tickers are stored in the first column >
2013 Feb 24
2
[LLVMdev] How to measure the overhead of instrumented code
Hello all, I have developed a instrumented pass which insert some variables between the original variables, as well as insert some code into the original source code. just like: ============= original source code ============= int a[10]; void fun1 () { // some source code here } ========================================= ============= instrumented source code ============= int