How to exclude all classes except for one in chord.ext.scope.exclude?

57 views
Skip to first unread message

Dongcai Shen

unread,
Mar 7, 2013, 1:13:26 AM3/7/13
to chord-...@googlegroups.com
Dear Chord maintainers,


Chord is very useful. I appreciate your great work. I stumble on a problem but don't know how to solve: exclude all classes except for one in chord.ext.scope.exclude. Would you mind giving me some hints?

For example, I want to exclude all classes with prefixes "java." except for java.lang.Runnable. I know that by this:
chord.ext.scope.exclude=java.
we exclude every class that starts w/ java.. However, is there any way to exclude every class except for java.lang.Runnable?

Many thanks.

Ariel Rabkin

unread,
Mar 7, 2013, 1:31:08 AM3/7/13
to chord-...@googlegroups.com
Unfortunately, no. Worse, the exclusion is deep in the joeq library
and therefore a pain to fix. The thing I usually did was wrote a
simple stub implementation.

I believe JChord has this for Runnable. But I never looked hard at
that. For my work, I actually did a conservative approximation and
assumed that all Runnables that were ever constructed would get run.

--Ari
> --
> You received this message because you are subscribed to the Google Groups
> "chord-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chord-discus...@googlegroups.com.
> To post to this group, send email to chord-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/chord-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Ari Rabkin asra...@gmail.com
Princeton Computer Science Department

Dongcai Shen

unread,
Mar 12, 2013, 11:53:57 AM3/12/13
to chord-...@googlegroups.com
Thanks, Ariel. I will try stub.

Btw, I followed the instruction of conf_analyzer (the README under its directory) and tried the hadoop example.

ant -Dchord.work.dir=`pwd`/examples/hadoop20/

The corresponding chord.properties has been changed to the actual address of hadoop jar in my machine. But, I got this error in log.txt:

ENTER: external-this-broad at Sun Mar 10 21:57:38 PDT 2013
ENTER: MentryPoints at Sun Mar 10 21:57:38 PDT 2013
Exception in thread "main" java.lang.RuntimeException: Cannot find value 'main:([Ljava/lang/String;)V...@org.apache.hadoop.fs.FsShell' in domain #0 named 'M' in relation named 'MentryPoints'.
    at chord.bddbddb.Rel.checkRange(Rel.java:642)
    at chord.bddbddb.Rel.add(Rel.java:1359)
    at chord.analyses.method.RelExtraEntryPoints.fill(RelExtraEntryPoints.java:42)
    at chord.project.analyses.ProgramRel.run(ProgramRel.java:37)
    at chord.project.ClassicProject.runTask(ClassicProject.java:398)
    at chord.project.ClassicProject.runTask(ClassicProject.java:395)
    at chord.project.ClassicProject.runTask(ClassicProject.java:395)
    at chord.project.ClassicProject.runTask(ClassicProject.java:419)
    at chord.analyses.confdep.docu.ShowConfOptions.run(ShowConfOptions.java:111)
    at chord.project.ClassicProject.runTask(ClassicProject.java:398)
    at chord.project.ClassicProject.runTask(ClassicProject.java:419)
    at chord.project.ClassicProject.run(ClassicProject.java:112)
    at chord.project.Main.run(Main.java:78)
    at chord.project.Main.main(Main.java:50)

It seems classes specified in multiple entrypoints are not analyzed and put in domain M. I am trying the multiple entrypoints in other scenarios but this seems not working (the same error). Maybe I miss sth, would you mind giving some hints? I am a newbie for chord. Thanks a lot.

zhe...@gmail.com

unread,
Nov 4, 2014, 4:45:15 AM11/4/14
to chord-...@googlegroups.com
Hi Dongcai,

I recently got this problem when running conf_analyzer by the instruction in the README file. I have no clue about it. Did you solve the problem? If yes, could tell me how to handle this problem?  Thanks a lot.

Zhen

在 2013年3月12日星期二UTC+1下午4时53分57秒,Dongcai Shen写道:
Thanks, Ariel. I will try stub.

Btw, I followed the instruction of conf_analyzer (the README under its directory) and tried the hadoop example.

ant -Dchord.work.dir=`pwd`/examples/hadoop20/

The corresponding chord.properties has been changed to the actual address of hadoop jar in my machine. But, I got this error in log.txt:

ENTER: external-this-broad at Sun Mar 10 21:57:38 PDT 2013
ENTER: MentryPoints at Sun Mar 10 21:57:38 PDT 2013
Exception in thread "main" java.lang.RuntimeException: Cannot find value 'main:([Ljava/lang/String;)V@org.apache.hadoop.fs.FsShell' in domain #0 named 'M' in relation named 'MentryPoints'.
Reply all
Reply to author
Forward
0 new messages